Skip to content

Conversation

@s3rius
Copy link
Owner

@s3rius s3rius commented Jun 23, 2022

This pull request will add opentelemetry integration.
Currently I added raw opentelemetry trace_provider and instrumentations for all libraries I could instrument.

This is a draft request that closes issue #85. I'll add containers for opentelemetry collectors in docker-compose later.

Signed-off-by: Pavel Kirilin win10@list.ru

Signed-off-by: Pavel Kirilin <win10@list.ru>
{%- endif %}

{%- if cookiecutter.otlp_enabled == "True" %}
opentelemetry_endpoint: Optional[str] = None
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder, if we set otlp_enabled to True wouldn't we want a default endpoint instead of None ?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It works like this.
If you don't provide any endpoint through environment variables, it won't enable the integration by default, but if you do it will enable tracing and start sending data to the specified endpoint.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also you don't always want to trace requests while running local copy of a project.

Signed-off-by: Pavel Kirilin <win10@list.ru>
@s3rius s3rius merged commit 52a634c into release/3.3.5 Jun 24, 2022
@s3rius s3rius deleted the feature/opentelemetry branch June 24, 2022 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants