Skip to content

Conversation

@reflog
Copy link
Contributor

@reflog reflog commented Nov 24, 2025

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds support for configuring the OpenTelemetry (OTEL) endpoint via the OTEL_EXPORTER_OTLP_ENDPOINT environment variable, with automatic detection of secure vs. insecure connections based on port 443. The implementation allows developers to override the default telemetry endpoint for testing or alternative deployments.

Key changes:

  • Added environment variable support for OTEL endpoint configuration in http_proxy.go
  • Implemented automatic insecure connection detection in otel.go based on port 443 presence
  • Refactored OTEL client initialization to use option slices for both tracer and metrics providers

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
http_proxy.go Added getTelemetryEndpoint() function to read OTEL endpoint from environment variable with fallback to default
otel/otel.go Added port-based insecure connection logic for both tracer and metrics providers

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@reflog reflog merged commit 33ec88e into main Nov 24, 2025
7 checks passed
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