You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Attribute client subclient struct declarations to enable distributed tracing.
47
+
///
48
+
/// To declare a subclient that will be traced, you should use the `#[tracing::subclient]` attribute
49
+
/// exported from azure_core.
50
+
///
51
+
/// This macro will automatically instrument the subclient declaration with tracing information. It will also ensure that the subclient is created with the necessary tracing context.
52
+
/// The `#[tracing::subclient]` attribute takes a single argument, which is a string representing the Azure Namespace name for the service being traced.
/// Attribute client public APIs to enable distributed tracing.
51
60
///
61
+
/// To declare a public API function that will be traced, you should use the `#[tracing::function]` attribute
62
+
/// exported from azure_core.
63
+
///
64
+
/// This macro will automatically instrument the public API function with tracing information. It will also ensure that the function is executed with the necessary tracing context.
65
+
///
66
+
/// The `function` attribute takes one required argument, which is a string representing the name of the operation being traced.
67
+
/// This name will be used in the tracing spans to identify the operation being performed. The name should be unique and match the
68
+
/// typespec name for the operation being traced if possible.
0 commit comments