[go: up one dir, main page]

new

Attribute Macro new 

Source
#[new]
Expand description

Attribute client struct instantiation to enable distributed tracing.

To enable tracing for a client instantiation, you should use the #[tracing::new] attribute exported from azure_core.

This macro will automatically instrument the client instantiation with tracing information. It will also ensure that the client is created with the necessary tracing context.

The #[tracing::new] attribute takes a single argument, which is a string representing the Azure Namespace name for the service being traced.

The list of Azure Namespaces can be found on this page