Skip to content
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

Don't init OpenTelemetry when in rails console. #307

Merged
merged 1 commit into from
Jul 11, 2023
Merged

Don't init OpenTelemetry when in rails console. #307

merged 1 commit into from
Jul 11, 2023

Conversation

sengi
Copy link
Contributor

@sengi sengi commented Jul 11, 2023

This fixes a bunch of annoying warnings on startup, avoids generating traces from interactive use by default, and possibly reduces the chance of OOM when execing rails console inside a serving app container.

(Thought about putting the condition in GovukOpenTelemetry::should_configure? but given that the condition is specific to the Rails use case, the Railtie seemed like the better/cleaner place to put it.)

@sengi sengi requested a review from theseanything July 11, 2023 10:36
This fixes a bunch of annoying warnings on startup, avoids generating
traces from interactive use by default, and probably reduces the chance
of OOM when execing `rails console` inside a serving app container.
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.

None yet

2 participants