You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/apm/agents/net-agent/configuration/net-agent-configuration.mdx
+20-19Lines changed: 20 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3265,7 +3265,7 @@ The `distributedTracing` element supports the following attributes:
3265
3265
3266
3266
#### Sampler Configuration
3267
3267
3268
-
<Calloutvariant="important>
3268
+
<Calloutvariant="important">
3269
3269
Sampler configuration is available starting with .NET agent version 10.45.0
3270
3270
</Callout>
3271
3271
@@ -3374,28 +3374,29 @@ The supported samplers can be configured at multiple levels:
3374
3374
The `<sampler>` configuration element is a child of the `<distributedTracing>` element and is structured as follows:
3375
3375
3376
3376
```xml
3377
-
<distributedTracing ... >
3378
-
<sampler>
3379
-
<root>
3380
-
...
3381
-
</root>
3382
-
<remoteParentSampled>
3383
-
...
3384
-
</remoteParentSampled>
3385
-
<remoteParentNotSampled>
3386
-
...
3387
-
</remoteParentNotSampled>
3388
-
</sampler>
3389
-
</distributedTracing>
3377
+
<distributedTracing ... >
3378
+
<sampler>
3379
+
<root>
3380
+
...
3381
+
</root>
3382
+
<remoteParentSampled>
3383
+
...
3384
+
</remoteParentSampled>
3385
+
<remoteParentNotSampled>
3386
+
...
3387
+
</remoteParentNotSampled>
3388
+
</sampler>
3389
+
</distributedTracing>
3390
3390
```
3391
3391
3392
3392
For each of the sampler levels, one of the following sampler configurations can be specified:
3393
+
3393
3394
```xml
3394
-
<default /> # default is a synonym for <adaptive />
3395
-
<adaptive />
3396
-
<traceIdRatioBased ratio="0.12" />
3397
-
<alwaysOn />
3398
-
<alwaysOff />
3395
+
<default /> # default is a synonym for <adaptive />
3396
+
<adaptive />
3397
+
<traceIdRatioBasedratio="0.12" />
3398
+
<alwaysOn />
3399
+
<alwaysOff />
3399
3400
```
3400
3401
3401
3402
The `<traceIdRatioBased>` element has a required `ratio` attribute, which is a value between 0.0 and 1.0 specifying the percentage of traces that should be sampled.
0 commit comments