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

Add an environment variable for overriding gRPC default authority #4278

Open
vishaalram02 opened this issue Nov 14, 2024 · 0 comments · May be fixed by #4284
Open

Add an environment variable for overriding gRPC default authority #4278

vishaalram02 opened this issue Nov 14, 2024 · 0 comments · May be fixed by #4284

Comments

@vishaalram02
Copy link

vishaalram02 commented Nov 14, 2024

Is your feature request related to a problem?

When exporting to a unix domain socket, typically the default authority is set to localhost instead of the socket path since otherwise the authority is invalid and gets rejected by the gRPC server. See issues hyperium/h2#487 and hyperium/tonic#742.

Describe the solution you'd like

I'd like an environment variable such as OTEL_EXPORTER_OTLP_AUTHORITY or a more general variable to override channel options:

self.channel = grpc.insecure_channel(self.endpoint, options=[('grpc.default_authority', OTEL_EXPORTER_OTLP_AUTHORITY)])

Describe alternatives you've considered

None

Additional Context

No response

Would you like to implement a fix?

Yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant