次の方法で共有


telemetry Package

Classes

AIProjectInstrumentor

A class for managing the trace instrumentation of the AIProjectClient.

This class allows enabling or disabling tracing for AI Projects and provides functionality to check whether instrumentation is active.

Warning

GenAI tracing is an experimental preview feature. To use this feature, you must set the

environment variable AZURE_EXPERIMENTAL_ENABLE_GENAI_TRACING=true (case insensitive)

before calling the instrument() method. Spans, attributes, and events may be modified

in future versions.

Functions

trace_function

A no-op decorator for tracing function calls when OpenTelemetry is not available.

trace_function(span_name: str | None = None)

Parameters

Name Description
span_name

Not used in this version.

Default value: None

Returns

Type Description

The original function.