Skip to content

Commit 0009061

Browse files
committed
review comments
1 parent 4fb3945 commit 0009061

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

opentelemetry-sdk/src/trace/config.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ impl Default for Config {
130130
Box::new(Sampler::TraceIdRatioBased(r))
131131
} else {
132132
otel_warn!(
133-
name: "TracerProvider.Config.Sampler.InvalidArgument",
133+
name: "TracerProvider.Config.InvalidSamplerArgument",
134134
message = "OTEL_TRACES_SAMPLER is set to 'traceidratio' but OTEL_TRACES_SAMPLER_ARG environment variable is missing or invalid. OTEL_TRACES_SAMPLER_ARG must be a valid float between 0.0 and 1.0 representing the desired sampling probability (0.0 = no traces sampled, 1.0 = all traces sampled, 0.5 = 50% of traces sampled). Falling back to default ratio: 1.0 (100% sampling)",
135135
otel_traces_sampler_arg = format!("{:?}", sampler_arg)
136136
);
@@ -151,7 +151,7 @@ impl Default for Config {
151151
))))
152152
} else {
153153
otel_warn!(
154-
name: "TracerProvider.Config.Sampler.InvalidArgument",
154+
name: "TracerProvider.Config.InvalidSamplerArgument",
155155
message = "OTEL_TRACES_SAMPLER is set to 'parentbased_traceidratio' but OTEL_TRACES_SAMPLER_ARG environment variable is missing or invalid. OTEL_TRACES_SAMPLER_ARG must be a valid float between 0.0 and 1.0 representing the desired sampling probability (0.0 = no traces sampled, 1.0 = all traces sampled, 0.5 = 50% of traces sampled). Falling back to default ratio: 1.0 (100% sampling)",
156156
otel_traces_sampler_arg = format!("{:?}", sampler_arg)
157157
);
@@ -162,28 +162,28 @@ impl Default for Config {
162162
}
163163
"parentbased_jaeger_remote" => {
164164
otel_warn!(
165-
name: "TracerProvider.Config.Sampler.Unsupported",
165+
name: "TracerProvider.Config.UnsupportedSampler",
166166
message = "OTEL_TRACES_SAMPLER is set to 'parentbased_jaeger_remote' which is not implemented in this SDK version. Using fallback sampler: ParentBased(AlwaysOn). Configure an alternative sampler using OTEL_TRACES_SAMPLER"
167167
);
168168
Box::new(Sampler::ParentBased(Box::new(Sampler::AlwaysOn)))
169169
}
170170
"jaeger_remote" => {
171171
otel_warn!(
172-
name: "TracerProvider.Config.Sampler.Unsupported",
172+
name: "TracerProvider.Config.UnsupportedSampler",
173173
message = "OTEL_TRACES_SAMPLER is set to 'jaeger_remote' which is implemented in this SDK version. Using fallback sampler: ParentBased(AlwaysOn). Configure an alternative sampler using OTEL_TRACES_SAMPLER"
174174
);
175175
Box::new(Sampler::ParentBased(Box::new(Sampler::AlwaysOn)))
176176
}
177177
"xray" => {
178178
otel_warn!(
179-
name: "TracerProvider.Config.Sampler.Unsupported",
179+
name: "TracerProvider.Config.UnsupportedSampler",
180180
message = "OTEL_TRACES_SAMPLER is set to 'xray'. AWS X-Ray sampler is not implemented in this SDK version. Using fallback sampler: ParentBased(AlwaysOn). Configure an alternative sampler using OTEL_TRACES_SAMPLER"
181181
);
182182
Box::new(Sampler::ParentBased(Box::new(Sampler::AlwaysOn)))
183183
}
184184
s => {
185185
otel_warn!(
186-
name: "TracerProvider.Config.Sampler.InvalidSamplerType",
186+
name: "TracerProvider.Config.InvalidSamplerType",
187187
message = format!(
188188
"Unrecognized sampler type '{}' in OTEL_TRACES_SAMPLER environment variable. Valid values are: always_on, always_off, traceidratio, parentbased_always_on, parentbased_always_off, parentbased_traceidratio. Using fallback sampler: ParentBased(AlwaysOn)",
189189
s

opentelemetry-sdk/src/trace/span_processor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ impl<R: RuntimeChannel> SpanProcessor for BatchSpanProcessor<R> {
251251

252252
if let Err(err) = result {
253253
otel_debug!(
254-
name: "BatchSpanProcessor.Export.SendResultError",
254+
name: "BatchSpanProcessor.ExportQueueingFailed",
255255
reason = format!("{:?}", TraceError::Other(err.into()))
256256
);
257257
}

0 commit comments

Comments
 (0)