Skip to content

Commit

Permalink
benchmark for jaegerand zipkin tested
Browse files Browse the repository at this point in the history
  • Loading branch information
silvergl committed Dec 8, 2024
1 parent d630e44 commit 5cb466e
Show file tree
Hide file tree
Showing 3,958 changed files with 17 additions and 11,238,853 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
7 changes: 7 additions & 0 deletions frameworks/OTel-python/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,11 @@ kieker-lang-pack-python/**
receiver/**
record-map.log
results-python/**
bin/**
include/**
jaeger-1.45.0-linux-amd64/**
venv/**
results-OTel-python/**
zipkin/**
lib64/**

17 changes: 6 additions & 11 deletions frameworks/OTel-python/benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@


# instrument


if instrumentation_on:
if approach == 1: # No Exporters
print("No exporter")
Expand All @@ -46,17 +44,14 @@
tracer_provider.add_span_processor(BatchSpanProcessor(OTLPSpanExporter(endpoint="localhost:4317", insecure=True)))
trace.set_tracer_provider(tracer_provider)


# trace.set_tracer_provider(TracerProvider(resource=Resource.create({"service.name": "hello-world-service"})))
# jaeger_exporter = OTLPSpanExporter(endpoint="localhost:4317", insecure=True)
# span_processor = BatchSpanProcessor(exp)
# trace.get_tracer_provider().add_span_processor(span_processor)
elif approach == 2: # Zipkin
print("Zipkin")
TracerProvider(resource=Resource.create({"service.name": "hello-world-service"}))
exp = zipkin_exporter = ZipkinExporter(endpoint="http://localhost:9411/api/v2/spans")
span_processor = BatchSpanProcessor(exp)
trace.get_tracer_provider().add_span_processor(span_processor)

resource = Resource.create({"service.name": "hello-world-service"})
tracer_provider = TracerProvider(resource=resource)
tracer_provider.add_span_processor(BatchSpanProcessor(ZipkinExporter(endpoint="http://localhost:9411/api/v2/spans")))
trace.set_tracer_provider(tracer_provider)


import monitored_application

Expand Down
8 changes: 4 additions & 4 deletions frameworks/OTel-python/benchmark.sh
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,13 @@ for ((i=1;i<=${NUM_OF_LOOPS};i+=1)); do
info "## Starting iteration ${i}/${NUM_OF_LOOPS}"
echo "## Starting iteration ${i}/${NUM_OF_LOOPS}" >> "${DATA_DIR}/kieker.log"

# noInstrumentation 0 $i
#noInstrumentation 0 $i

# runWithNoExporter 1 $i
#runWithNoExporter 1 $i

# runWithZipkin 2 $i
runWithZipkin 0 $i

runWithJaeger 0 $i
# runWithJaeger 3 $i


printIntermediaryResults "${i}"
Expand Down
Loading

0 comments on commit 5cb466e

Please sign in to comment.