@@ -77,7 +77,7 @@ Reload APISIX for changes to take effect.
77
77
| sampler.options | object | False | - | - | Parameters for sampling strategy. |
78
78
| sampler.options.fraction | number | False | 0 | [0, 1] | Sampling ratio when the sampling strategy is `trace_id_ratio`. |
79
79
| 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. |
81
81
| sampler.options.root.options | object | False | - | - | Root sampling strategy parameters. |
82
82
| sampler.options.root.options.fraction | number | False | 0 | [0, 1] | Root sampling ratio when the sampling strategy is `trace_id_ratio`. |
83
83
| 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
147
147
148
148
` ` ` text
149
149
2024-02-18T17:14:03.825Z info ResourceSpans #0
150
- Resource SchemaURL:
150
+ Resource SchemaURL:
151
151
Resource attributes:
152
152
-> telemetry.sdk.language: Str(lua)
153
153
-> telemetry.sdk.name: Str(opentelemetry-lua)
154
154
-> telemetry.sdk.version: Str(0.1.1)
155
155
-> hostname: Str(e34673e24631)
156
156
-> service.name: Str(APISIX)
157
157
ScopeSpans #0
158
- ScopeSpans SchemaURL:
159
- InstrumentationScope opentelemetry-lua
158
+ ScopeSpans SchemaURL:
159
+ InstrumentationScope opentelemetry-lua
160
160
Span #0
161
161
Trace ID : fbd0a38d4ea4a128ff1a688197bc58b0
162
- Parent ID :
162
+ Parent ID :
163
163
ID : af3dc7642104748a
164
164
Name : GET /anything
165
165
Kind : Server
166
166
Start time : 2024-02-18 17:14:03.763244032 +0000 UTC
167
167
End time : 2024-02-18 17:14:03.920229888 +0000 UTC
168
168
Status code : Unset
169
- Status message :
169
+ Status message :
170
170
Attributes:
171
171
-> net.host.name: Str(127.0.0.1)
172
172
-> http.method: Str(GET)
0 commit comments