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

workaround for bug/behaviour in otlp-metrics-exporter #26

Merged
merged 3 commits into from
Mar 13, 2024

Conversation

moflwi
Copy link
Collaborator

@moflwi moflwi commented Mar 11, 2024

Checking if reading from an env returns the value undefined and assigning the string the value undefined, so the otlp-metrics doesn't crash until fix in the package is applied.
Worked locally for both services (no load/requests, but was reproducible on simple docker run).

Related issue: open-telemetry/opentelemetry-js#4541

@moflwi moflwi requested a review from plengauer March 11, 2024 21:16
Backend/backend.js Dismissed Show dismissed Hide dismissed
DiscordGateway2HTTP/opentelemetry.js Dismissed Show dismissed Hide dismissed
@plengauer
Copy link
Owner

is this workaround confirmed to work?

@plengauer
Copy link
Owner

just saw the comment about it being an otel bug when the token is undefined. yes, go ahead and pump the last place of every version please

@plengauer
Copy link
Owner

plengauer commented Mar 12, 2024

after this is merged, no re-install is necessary, just a manual "sudo philbot_restart" will do the trick if you dont wanna wait until its auto-updating itself.

@moflwi moflwi force-pushed the otlp-metricexport-crash branch from e0ea32a to 74bc310 Compare March 12, 2024 08:55
@moflwi moflwi merged commit de49a1e into main Mar 13, 2024
5 checks passed
@moflwi moflwi deleted the otlp-metricexport-crash branch March 13, 2024 06:49
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