Skip to content

Add opentelemetry support#67

Draft
ctrl-schaff wants to merge 2 commits intomainfrom
add-opentelemetry-support
Draft

Add opentelemetry support#67
ctrl-schaff wants to merge 2 commits intomainfrom
add-opentelemetry-support

Conversation

@ctrl-schaff
Copy link
Collaborator

No description provided.

@ctrl-schaff ctrl-schaff added the enhancement New feature or request label Dec 3, 2024
@ctrl-schaff ctrl-schaff requested a review from newgene December 3, 2024 19:18
@ctrl-schaff ctrl-schaff self-assigned this Dec 3, 2024
"CACHE_MAX_AGE": 604800
},
"opentelemetry": {
"OPENTELEMETRY_ENABLED": false,
Copy link
Collaborator

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

},
"opentelemetry": {
"OPENTELEMETRY_ENABLED": false,
"OPENTELEMETRY_SERVICE_NAME": "biothings-annotator",
Copy link
Collaborator

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"
]
Copy link
Collaborator

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants