opentelemetry-python icon indicating copy to clipboard operation
opentelemetry-python copied to clipboard

Generate default endpoint for metric, trace in grpc

Open tyg03485 opened this issue 3 years ago • 4 comments

How about pushing value of endpoint in OTLPSpanExporter, OTLPMetricExporter which generated by OTEL_EXPORTER_OTLP_ENDPOINT like http?

e.g. Trace

https://github.com/open-telemetry/opentelemetry-python/blob/main/exporter/opentelemetry-exporter-otlp-proto-grpc/src/opentelemetry/exporter/otlp/proto/grpc/trace_exporter/init.py#L78

https://github.com/open-telemetry/opentelemetry-python/blob/main/exporter/opentelemetry-exporter-otlp-proto-http/src/opentelemetry/exporter/otlp/proto/http/trace_exporter/init.py#L83

        self._endpoint = endpoint or environ.get(
            OTEL_EXPORTER_OTLP_TRACES_ENDPOINT,
            _append_trace_path(
                environ.get(OTEL_EXPORTER_OTLP_ENDPOINT, DEFAULT_ENDPOINT)
            ),
        )

tyg03485 avatar Dec 29 '22 02:12 tyg03485

If okay with that, i will make pr for it :)

tyg03485 avatar Dec 29 '22 03:12 tyg03485

I didn't fully understand what the feature request is, what change will your PR make?

aabmass avatar Dec 29 '22 19:12 aabmass

@jungrae-prestolabs please share your request clearly.

srikanthccv avatar Feb 04 '23 20:02 srikanthccv

ping @jungrae-prestolabs

srikanthccv avatar Mar 10 '23 08:03 srikanthccv