opentelemetry.sdk.util.instrumentation

class opentelemetry.sdk.util.instrumentation.InstrumentationInfo(name, version=None, schema_url=None)[source]

Bases: object

Immutable information about an instrumentation library module.

See opentelemetry.trace.TracerProvider.get_tracer for the meaning of these properties.

property schema_url
Return type

Optional[str]

property version
Return type

Optional[str]

property name
Return type

str

class opentelemetry.sdk.util.instrumentation.InstrumentationScope(name, version=None, schema_url=None)[source]

Bases: object

A logical unit of the application code with which the emitted telemetry can be associated.

See opentelemetry.trace.TracerProvider.get_tracer for the meaning of these properties.

property schema_url
Return type

Optional[str]

property version
Return type

Optional[str]

property name
Return type

str

to_json(indent=4)[source]
Return type

str