From ac55d23f02b7d961ccef82c19fbd1cf03a105cc6 Mon Sep 17 00:00:00 2001 From: ale <ale@incal.net> Date: Fri, 25 Nov 2022 12:29:35 +0000 Subject: [PATCH] Use the zipkin JSON exporter temporarily The protobuf exporter is apparently causing Jaeger to crash and return 500 errors. --- ai_web_common/flask_ai/tracing.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ai_web_common/flask_ai/tracing.py b/ai_web_common/flask_ai/tracing.py index 4af9a64..f114802 100644 --- a/ai_web_common/flask_ai/tracing.py +++ b/ai_web_common/flask_ai/tracing.py @@ -2,7 +2,7 @@ import json import os from opentelemetry import trace -from opentelemetry.exporter.zipkin.proto.http import ZipkinExporter +from opentelemetry.exporter.zipkin.json import ZipkinExporter from opentelemetry.sdk.trace import TracerProvider from opentelemetry.sdk.trace.export import BatchSpanProcessor from opentelemetry.sdk.resources import SERVICE_NAME, Resource diff --git a/setup.py b/setup.py index 07e457a..a5f3893 100755 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ setup( "Flask", "flask-talisman", "opentelemetry-distro", - "opentelemetry-exporter-zipkin-proto-http", + "opentelemetry-exporter-zipkin-json", "opentelemetry-instrumentation-flask", "sso", "urllib3", -- GitLab