-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add opentelemetry support #67
base: main
Are you sure you want to change the base?
Conversation
@@ -7,6 +7,12 @@ | |||
"REQUEST_MAX_SIZE": 100000000, | |||
"CACHE_MAX_AGE": 604800 | |||
}, | |||
"opentelemetry": { | |||
"OPENTELEMETRY_ENABLED": false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool to have the default values here.
We could just enable the OPTL in the Dockerfile as an ENV variable
ENV OPENTELEMETRY_ENABLED True
@@ -7,6 +7,12 @@ | |||
"REQUEST_MAX_SIZE": 100000000, | |||
"CACHE_MAX_AGE": 604800 | |||
}, | |||
"opentelemetry": { | |||
"OPENTELEMETRY_ENABLED": false, | |||
"OPENTELEMETRY_SERVICE_NAME": "biothings-annotator", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you confirm the Service Name to Chunlei? If it's different from "biothings-annotator"
, the ENV variable OPENTELEMETRY_SERVICE_NAME
could be added to the Dockerfile.
"opentelemetry-exporter-otlp >= 1.28.2", | ||
"opentelemetry.exporter.jaeger.thrift >= 1.21.0", | ||
"opentelemetry-instrumentation >= 0.49b2" | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @ctrl-schaff, while running the branch locally, there is the error below. It seems the library just needs to be installed. However, they are here to be installed.
ModuleNotFoundError: No module named 'opentelemetry'
No description provided.