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: str | None
property version: str | None
property name: 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: str | None
property version: str | None
property name: str
to_json(indent=4)[source]
Return type:

str