azure_core/http/options/instrumentation.rs
1// Copyright (c) Microsoft Corporation. All rights reserved.
2// Licensed under the MIT License.
3
4use std::sync::Arc;
5
6/// Policy options to enable distributed tracing.
7///
8/// # Notes
9///
10/// [`LoggingOptions::additional_allowed_query_params`](super::LoggingOptions::additional_allowed_query_params)
11/// is used to sanitize query parameters in traced URLs as well.
12/// Query parameters not in the default or additional allow list will have their values
13/// replaced with `REDACTED` in the `url.full` span attribute.
14#[derive(Clone, Debug, Default)]
15pub struct InstrumentationOptions {
16 /// Set the tracer provider for distributed tracing.
17 pub tracer_provider: Option<Arc<dyn crate::tracing::TracerProvider>>,
18}