Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
lint
  • Loading branch information
jeremydvoss committed Jun 4, 2024
commit 3a691cd0409a6948ff517feb9fd13e6f1ce82050
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def _configure(self, **kwargs):
kwargs.setdefault(TRACE_EXPORTER_NAMES_ARG, ["azure-monitor-opentelemetry-exporter"])
try:
sample_rate = float(environ.get("OTEL_TRACES_SAMPLER_ARG", 1.0))
except ValueError:
except ValueError:
sample_rate = 1.0
kwargs.setdefault(SAMPLER_ARG, ApplicationInsightsSampler(sample_rate))
if environ.get(OTEL_METRICS_EXPORTER, "").lower().strip() != "none":
Expand Down