Skip to content

Commit d4bcd0c

Browse files
committed
fix the syntax error
1 parent d8ce756 commit d4bcd0c

File tree

1 file changed

+20
-19
lines changed

1 file changed

+20
-19
lines changed

src/content/docs/apm/agents/net-agent/configuration/net-agent-configuration.mdx

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3265,7 +3265,7 @@ The `distributedTracing` element supports the following attributes:
32653265

32663266
#### Sampler Configuration
32673267

3268-
<Callout variant="important>
3268+
<Callout variant="important">
32693269
Sampler configuration is available starting with .NET agent version 10.45.0
32703270
</Callout>
32713271

@@ -3374,28 +3374,29 @@ The supported samplers can be configured at multiple levels:
33743374
The `<sampler>` configuration element is a child of the `<distributedTracing>` element and is structured as follows:
33753375

33763376
```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>
33903390
```
33913391

33923392
For each of the sampler levels, one of the following sampler configurations can be specified:
3393+
33933394
```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+
<traceIdRatioBased ratio="0.12" />
3398+
<alwaysOn />
3399+
<alwaysOff />
33993400
```
34003401

34013402
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

Comments
 (0)