Skip to content

Centralizing OTEL configuration and applying it to more deployment options - #111

Merged
hyi merged 1 commit into
otel_securityfrom
otel_suggestions
May 18, 2026
Merged

Centralizing OTEL configuration and applying it to more deployment options#111
hyi merged 1 commit into
otel_securityfrom
otel_suggestions

Conversation

@EvanDietzMorris

Copy link
Copy Markdown
Collaborator

The first implementation of setting up OTEL as a post hook was only applied to the plater-clustered-docker deployment, and all the OTEL code lived in that docker/deployment specific directory.

This PR moves the OTEL set up to a more findable centralized location and also applies it to the non-clustered deployment as well as the main entry of server.py.

Note that this still doesn't allow us to use OTEL when deploying with a uvicorn --reload

@EvanDietzMorris
EvanDietzMorris requested a review from hyi May 18, 2026 15:50

@hyi hyi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@EvanDietzMorris Looks good. Agreed creating otel.py under services and calling it from post_fork() hook in gunicorn.conf.py is a better design and increases code readability.

@hyi
hyi merged commit 3256664 into otel_security May 18, 2026
1 check passed
@hyi
hyi deleted the otel_suggestions branch May 18, 2026 16:21
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.

2 participants