Skip to content

Commit

Permalink
test whats wrong with checks
Browse files Browse the repository at this point in the history
  • Loading branch information
ADOT Patch workflow committed Feb 5, 2024
1 parent a4b8a19 commit 31eb112
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ def setUp(self):
os.environ.setdefault(OTEL_LOGS_EXPORTER, "none")
os.environ.setdefault(OTEL_TRACES_SAMPLER, "traceidratio")
os.environ.setdefault(OTEL_TRACES_SAMPLER_ARG, "0.01")
print(os.environ.get(OTEL_TRACES_SAMPLER))
print("KKKKKKKKKKKKKKK" + os.environ.get(OTEL_TRACES_SAMPLER_ARG))
self.span_exporter: InMemorySpanExporter = InMemorySpanExporter()
self.simple_span_processor: SimpleSpanProcessor = SimpleSpanProcessor(self.span_exporter)
self.aws_otel_configurator: AwsOpenTelemetryConfigurator = AwsOpenTelemetryConfigurator()
Expand All @@ -40,6 +38,8 @@ def test_provide_generate_xray_ids(self):
self.assertGreater(trace_id, start_time_sec)

def test_trace_id_ratio_sampler(self):
print(os.environ.get(OTEL_TRACES_SAMPLER))
print("KKKKKKKKKKKKKKK" + os.environ.get(OTEL_TRACES_SAMPLER_ARG))
num_spans: int = 10000
num_sampled: int = 0
tracer: Tracer = self.tracer_provider.get_tracer("test")
Expand Down

0 comments on commit 31eb112

Please sign in to comment.