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

feat: environment variables for opentelemetry metrics collector endpoint #3063

Closed
wants to merge 2 commits into from

Conversation

RogerHYang
Copy link
Contributor

@RogerHYang RogerHYang commented May 3, 2024

@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label May 3, 2024


def server_instrumentation_is_enabled() -> bool:
return bool(
os.getenv(ENV_PHOENIX_SERVER_INSTRUMENTATION_OTLP_TRACE_COLLECTOR_HTTP_ENDPOINT)
) or bool(os.getenv(ENV_PHOENIX_SERVER_INSTRUMENTATION_OTLP_TRACE_COLLECTOR_GRPC_ENDPOINT))
or os.getenv(ENV_PHOENIX_SERVER_INSTRUMENTATION_OTLP_TRACE_COLLECTOR_GRPC_ENDPOINT)
or os.getenv(ENV_PHOENIX_SERVER_INSTRUMENTATION_OTLP_METRICS_COLLECTOR_HTTP_ENDPOINT)
Copy link
Contributor

Choose a reason for hiding this comment

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

Isn't it normal to just have a OTLP endpoint and for that to just support metrics too?

@RogerHYang RogerHYang marked this pull request as draft May 3, 2024 14:57
@RogerHYang RogerHYang closed this Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants