Description
follow-up on #3251
#3251 (comment)
#3251 (comment)
According to the spec schema_url
can be provided as parameter when getting a meter or a logger
While otel-api in python supports providing schema_url on metrics and logs, some overloads don't support it:
or
while the same overload on traces takes schema_url
opentelemetry-python/opentelemetry-api/src/opentelemetry/trace/__init__.py
Lines 493 to 498 in c8e5c3e
Is your feature request related to a problem?
With a lot of recent changes in OTel semconv, populating schema_url is essential for backends to understand telemetry, but many instrumentation libraries do not populate it
https://github.com/open-telemetry/opentelemetry-python-contrib/pull/1746/files
Describe the solution you'd like
Add schema_url
as parameter on convenience get_meter
and get_logger
methods