Skip to content

Commit 0885e56

Browse files
authored
fix comments & lint
1 parent 965df83 commit 0885e56

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/en/latest/plugins/opentelemetry.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Reload APISIX for changes to take effect.
7777
| sampler.options | object | False | - | - | Parameters for sampling strategy. |
7878
| sampler.options.fraction | number | False | 0 | [0, 1] | Sampling ratio when the sampling strategy is `trace_id_ratio`. |
7979
| sampler.options.root | object | False | - | - | Root sampler when the sampling strategy is `parent_base` strategy. |
80-
| sampler.options.root.name | string | False | - | `always_on`, `always_off`, or `trace_id_ratio` | Root sampling strategy. |
80+
| sampler.options.root.name | string | False | - | ["always_on", "always_off", "trace_id_ratio"] | Root sampling strategy. |
8181
| sampler.options.root.options | object | False | - | - | Root sampling strategy parameters. |
8282
| sampler.options.root.options.fraction | number | False | 0 | [0, 1] | Root sampling ratio when the sampling strategy is `trace_id_ratio`. |
8383
| additional_attributes | array[string] | False | - | - | Additional attributes appended to the trace span. Support [built-in variables](https://apisix.apache.org/docs/apisix/apisix-variable/) in values. |
@@ -147,26 +147,26 @@ In OpenTelemetry collector's log, you should see information similar to the foll
147147

148148
```text
149149
2024-02-18T17:14:03.825Z info ResourceSpans #0
150-
Resource SchemaURL:
150+
Resource SchemaURL:
151151
Resource attributes:
152152
-> telemetry.sdk.language: Str(lua)
153153
-> telemetry.sdk.name: Str(opentelemetry-lua)
154154
-> telemetry.sdk.version: Str(0.1.1)
155155
-> hostname: Str(e34673e24631)
156156
-> service.name: Str(APISIX)
157157
ScopeSpans #0
158-
ScopeSpans SchemaURL:
159-
InstrumentationScope opentelemetry-lua
158+
ScopeSpans SchemaURL:
159+
InstrumentationScope opentelemetry-lua
160160
Span #0
161161
Trace ID : fbd0a38d4ea4a128ff1a688197bc58b0
162-
Parent ID :
162+
Parent ID :
163163
ID : af3dc7642104748a
164164
Name : GET /anything
165165
Kind : Server
166166
Start time : 2024-02-18 17:14:03.763244032 +0000 UTC
167167
End time : 2024-02-18 17:14:03.920229888 +0000 UTC
168168
Status code : Unset
169-
Status message :
169+
Status message :
170170
Attributes:
171171
-> net.host.name: Str(127.0.0.1)
172172
-> http.method: Str(GET)

0 commit comments

Comments
 (0)