这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@hgiasac
Copy link
Collaborator

@hgiasac hgiasac commented Nov 16, 2025

This pull request updates the logic for parsing OTLP endpoints in the provider.go file. The main change ensures that the correct value is returned for different OTLP protocols, specifically distinguishing between gRPC and HTTP Protobuf.

Protocol handling improvements:

  • In func parseOTLPEndpoint, the return value for the OTLPProtocolHTTPProtobuf case is changed to return endpoint instead of host, ensuring the correct endpoint is used for HTTP Protobuf connections.

@hgiasac hgiasac requested a review from Copilot November 16, 2025 17:12
Copilot finished reviewing on behalf of hgiasac November 16, 2025 17:18
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 fixes OTLP endpoint parsing by distinguishing between gRPC and HTTP Protobuf protocol handling. The change ensures that HTTP Protobuf endpoints return the full endpoint URL instead of just the hostname:port, which is critical for preserving path components that HTTP OTLP endpoints often require.

Key Changes

  • Separated the combined OTLPProtocolGRPC, OTLPProtocolHTTPProtobuf case into distinct cases
  • gRPC protocol continues to return host (hostname:port only)
  • HTTP Protobuf protocol now returns endpoint (full URL with scheme and path)

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

@hgiasac hgiasac requested a review from Copilot November 16, 2025 18:29
Copilot finished reviewing on behalf of hgiasac November 16, 2025 18:31
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

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.


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

@hgiasac hgiasac merged commit d346a28 into main Nov 16, 2025
1 check passed
@hgiasac hgiasac deleted the fix/otlp-http-endpoints branch November 16, 2025 18:35
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.

1 participant