File tree 4 files changed +19
-2
lines changed
4 files changed +19
-2
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+
3
4
## vNext
4
5
6
+
7
+ ### Deprecated
8
+
9
+ - XrayIdGenerator in the opentelemetry-sdk has been deprecated and moved to version 0.10.0 of the opentelemetry-aws crate.
10
+
5
11
### Added
6
12
7
13
- [ #1410 ] ( https://github.com/open-telemetry/opentelemetry-rust/pull/1410 ) Add experimental synchronous gauge
12
18
Performance Improvement : Creating Spans and LogRecords are now faster, by avoiding expensive cloning of ` Resource ` for every Span/LogRecord.
13
19
14
20
### Changed
15
-
16
21
- ** Breaking**
17
22
[ #1313 ] ( https://github.com/open-telemetry/opentelemetry-rust/pull/1313 )
18
23
[ #1350 ] ( https://github.com/open-telemetry/opentelemetry-rust/pull/1350 )
Original file line number Diff line number Diff line change @@ -137,6 +137,8 @@ pub mod runtime;
137
137
#[ cfg( any( feature = "testing" , test) ) ]
138
138
#[ cfg_attr( docsrs, doc( cfg( any( feature = "testing" , test) ) ) ) ]
139
139
pub mod testing;
140
+
141
+ #[ allow( deprecated) ]
140
142
#[ cfg( feature = "trace" ) ]
141
143
#[ cfg_attr( docsrs, doc( cfg( feature = "trace" ) ) ) ]
142
144
pub mod trace;
Original file line number Diff line number Diff line change @@ -34,6 +34,10 @@ use std::time::{Duration, UNIX_EPOCH};
34
34
/// [xray-exporter]: https://godoc.org/github.com/open-telemetry/opentelemetry-collector-contrib/exporter/awsxrayexporter
35
35
/// [xray-trace-id]: https://docs.aws.amazon.com/xray/latest/devguide/xray-api-sendingdata.html#xray-api-traceids
36
36
#[ derive( Debug , Default ) ]
37
+ #[ deprecated(
38
+ since = "0.21.3" ,
39
+ note = "XrayId Generator has been migrated to the opentelemetry-aws crate"
40
+ ) ]
37
41
pub struct XrayIdGenerator {
38
42
sdk_default_generator : RandomIdGenerator ,
39
43
}
Original file line number Diff line number Diff line change @@ -19,7 +19,13 @@ mod tracer;
19
19
20
20
pub use config:: { config, Config } ;
21
21
pub use events:: SpanEvents ;
22
- pub use id_generator:: { aws:: XrayIdGenerator , IdGenerator , RandomIdGenerator } ;
22
+
23
+ #[ deprecated(
24
+ since = "0.21.3" ,
25
+ note = "XrayId Generator has been migrated to the opentelemetry-aws crate"
26
+ ) ]
27
+ pub use id_generator:: aws:: XrayIdGenerator ;
28
+ pub use id_generator:: { IdGenerator , RandomIdGenerator } ;
23
29
pub use links:: SpanLinks ;
24
30
pub use provider:: { Builder , TracerProvider } ;
25
31
pub use sampler:: { Sampler , ShouldSample } ;
You can’t perform that action at this time.
0 commit comments