Skip to content

Commit fa67e75

Browse files
rads-1996Copilot
andauthored
Update sdk/monitor/azure-monitor-opentelemetry/azure/monitor/opentelemetry/_configure.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 814db1e commit fa67e75

File tree

1 file changed

+2
-1
lines changed
  • sdk/monitor/azure-monitor-opentelemetry/azure/monitor/opentelemetry

1 file changed

+2
-1
lines changed

sdk/monitor/azure-monitor-opentelemetry/azure/monitor/opentelemetry/_configure.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,8 @@ def _setup_tracing(configurations: Dict[str, ConfigurationValue]):
138138
if SAMPLING_TRACES_PER_SECOND_ARG in configurations:
139139
sampling_traces_per_second = configurations[SAMPLING_TRACES_PER_SECOND_ARG]
140140
tracer_provider = TracerProvider(
141-
sampler=RateLimitedSampler(sampling_ratio=cast(float, sampling_traces_per_second), resource=resource)
141+
sampler=RateLimitedSampler(target_spans_per_second_limit=cast(float, sampling_traces_per_second)),
142+
resource=resource,
142143
)
143144
else:
144145
sampling_ratio = configurations[SAMPLING_RATIO_ARG]

0 commit comments

Comments
 (0)