diff --git a/opentelemetry-datadog/README.md b/opentelemetry-datadog/README.md index 52670454d2..67be663d5a 100644 --- a/opentelemetry-datadog/README.md +++ b/opentelemetry-datadog/README.md @@ -37,7 +37,7 @@ to [`Datadog`]. [Example]((https://docs.rs/opentelemetry-datadog/latest/opentelemetry_datadog/#kitchen-sink-full-configuration)) showing how to override all configuration options. See the [`DatadogPipelineBuilder`] docs for details of each option. - [`DatadogPipelineBuilder`]: struct.DatadogPipelineBuilder.html + [`DatadogPipelineBuilder`]: https://docs.rs/opentelemetry-datadog/latest/opentelemetry_datadog/struct.DatadogPipelineBuilder.html [`Datadog`]: https://www.datadoghq.com/ [`OpenTelemetry`]: https://crates.io/crates/opentelemetry diff --git a/opentelemetry-proto/src/proto/grpcio/common.rs b/opentelemetry-proto/src/proto/grpcio/common.rs index c2a257d0bd..bf69e3c346 100644 --- a/opentelemetry-proto/src/proto/grpcio/common.rs +++ b/opentelemetry-proto/src/proto/grpcio/common.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 2.26.1. Do not edit +// This file is generated by rust-protobuf 2.27.1. Do not edit // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -21,7 +21,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_26_1; +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_27_1; #[derive(PartialEq,Clone,Default)] #[cfg_attr(feature = "with-serde", derive(::serde::Serialize, ::serde::Deserialize))] diff --git a/opentelemetry-proto/src/proto/grpcio/metrics.rs b/opentelemetry-proto/src/proto/grpcio/metrics.rs index 8505563e3b..1894a5382d 100644 --- a/opentelemetry-proto/src/proto/grpcio/metrics.rs +++ b/opentelemetry-proto/src/proto/grpcio/metrics.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 2.26.1. Do not edit +// This file is generated by rust-protobuf 2.27.1. Do not edit // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -21,7 +21,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_26_1; +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_27_1; #[derive(PartialEq,Clone,Default)] #[cfg_attr(feature = "with-serde", derive(::serde::Serialize, ::serde::Deserialize))] diff --git a/opentelemetry-proto/src/proto/grpcio/metrics_service.rs b/opentelemetry-proto/src/proto/grpcio/metrics_service.rs index 2055807e50..5941242157 100644 --- a/opentelemetry-proto/src/proto/grpcio/metrics_service.rs +++ b/opentelemetry-proto/src/proto/grpcio/metrics_service.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 2.26.1. Do not edit +// This file is generated by rust-protobuf 2.27.1. Do not edit // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -21,7 +21,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_26_1; +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_27_1; #[derive(PartialEq,Clone,Default)] #[cfg_attr(feature = "with-serde", derive(::serde::Serialize, ::serde::Deserialize))] diff --git a/opentelemetry-proto/src/proto/grpcio/resource.rs b/opentelemetry-proto/src/proto/grpcio/resource.rs index d09faadf5d..922ac4f47e 100644 --- a/opentelemetry-proto/src/proto/grpcio/resource.rs +++ b/opentelemetry-proto/src/proto/grpcio/resource.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 2.26.1. Do not edit +// This file is generated by rust-protobuf 2.27.1. Do not edit // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -21,7 +21,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_26_1; +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_27_1; #[derive(PartialEq,Clone,Default)] #[cfg_attr(feature = "with-serde", derive(::serde::Serialize, ::serde::Deserialize))] diff --git a/opentelemetry-proto/src/proto/grpcio/trace.rs b/opentelemetry-proto/src/proto/grpcio/trace.rs index 4c25cadc90..5c5368395a 100644 --- a/opentelemetry-proto/src/proto/grpcio/trace.rs +++ b/opentelemetry-proto/src/proto/grpcio/trace.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 2.26.1. Do not edit +// This file is generated by rust-protobuf 2.27.1. Do not edit // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -21,7 +21,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_26_1; +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_27_1; #[derive(PartialEq,Clone,Default)] #[cfg_attr(feature = "with-serde", derive(::serde::Serialize, ::serde::Deserialize))] diff --git a/opentelemetry-proto/src/proto/grpcio/trace_config.rs b/opentelemetry-proto/src/proto/grpcio/trace_config.rs index 34456cd2c4..3c213db4b1 100644 --- a/opentelemetry-proto/src/proto/grpcio/trace_config.rs +++ b/opentelemetry-proto/src/proto/grpcio/trace_config.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 2.26.1. Do not edit +// This file is generated by rust-protobuf 2.27.1. Do not edit // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -21,7 +21,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_26_1; +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_27_1; #[derive(PartialEq,Clone,Default)] #[cfg_attr(feature = "with-serde", derive(::serde::Serialize, ::serde::Deserialize))] diff --git a/opentelemetry-proto/src/proto/grpcio/trace_service.rs b/opentelemetry-proto/src/proto/grpcio/trace_service.rs index 357c8cc56f..016c02d56c 100644 --- a/opentelemetry-proto/src/proto/grpcio/trace_service.rs +++ b/opentelemetry-proto/src/proto/grpcio/trace_service.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 2.26.1. Do not edit +// This file is generated by rust-protobuf 2.27.1. Do not edit // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -21,7 +21,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_26_1; +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_27_1; #[derive(PartialEq,Clone,Default)] #[cfg_attr(feature = "with-serde", derive(::serde::Serialize, ::serde::Deserialize))] diff --git a/opentelemetry-proto/src/proto/grpcio/tracez.rs b/opentelemetry-proto/src/proto/grpcio/tracez.rs index b915518e6f..bfc1baaa36 100644 --- a/opentelemetry-proto/src/proto/grpcio/tracez.rs +++ b/opentelemetry-proto/src/proto/grpcio/tracez.rs @@ -1,4 +1,4 @@ -// This file is generated by rust-protobuf 2.26.1. Do not edit +// This file is generated by rust-protobuf 2.27.1. Do not edit // @generated // https://github.com/rust-lang/rust-clippy/issues/702 @@ -21,7 +21,7 @@ /// Generated files are compatible only with the same version /// of protobuf runtime. -// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_26_1; +// const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_27_1; #[derive(PartialEq,Clone,Default)] #[cfg_attr(feature = "with-serde", derive(::serde::Serialize, ::serde::Deserialize))] diff --git a/opentelemetry/src/trace/tracer.rs b/opentelemetry/src/trace/tracer.rs index 15ecdb90c1..27ea5cb64f 100644 --- a/opentelemetry/src/trace/tracer.rs +++ b/opentelemetry/src/trace/tracer.rs @@ -256,9 +256,10 @@ pub trait Tracer { /// }) /// } /// ``` - fn in_span(&self, name: &'static str, f: F) -> T + fn in_span(&self, name: N, f: F) -> T where F: FnOnce(Context) -> T, + N: Into>, Self::Span: Send + Sync + 'static, { let span = self.start(name);