通过


你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

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.