@@ -56,7 +56,7 @@ impl Config {
5656 /// Specify the number of events to be recorded per span.
5757 #[ deprecated(
5858 since = "0.27.1" ,
59- note = "Config is becoming private. Please use Builder::with_sampler (...) instead."
59+ note = "Config is becoming private. Please use Builder::with_max_events_per_span (...) instead."
6060 ) ]
6161 pub fn with_max_events_per_span ( mut self , max_events : u32 ) -> Self {
6262 self . span_limits . max_events_per_span = max_events;
@@ -66,7 +66,7 @@ impl Config {
6666 /// Specify the number of attributes to be recorded per span.
6767 #[ deprecated(
6868 since = "0.27.1" ,
69- note = "Config is becoming private. Please use Builder::with_sampler (...) instead."
69+ note = "Config is becoming private. Please use Builder::with_max_attributes_per_span (...) instead."
7070 ) ]
7171 pub fn with_max_attributes_per_span ( mut self , max_attributes : u32 ) -> Self {
7272 self . span_limits . max_attributes_per_span = max_attributes;
@@ -76,7 +76,7 @@ impl Config {
7676 /// Specify the number of events to be recorded per span.
7777 #[ deprecated(
7878 since = "0.27.1" ,
79- note = "Config is becoming private. Please use Builder::with_sampler (...) instead."
79+ note = "Config is becoming private. Please use Builder::with_max_links_per_span (...) instead."
8080 ) ]
8181 pub fn with_max_links_per_span ( mut self , max_links : u32 ) -> Self {
8282 self . span_limits . max_links_per_span = max_links;
@@ -86,7 +86,7 @@ impl Config {
8686 /// Specify the number of attributes one event can have.
8787 #[ deprecated(
8888 since = "0.27.1" ,
89- note = "Config is becoming private. Please use Builder::with_sampler (...) instead."
89+ note = "Config is becoming private. Please use Builder::with_max_attributes_per_event (...) instead."
9090 ) ]
9191 pub fn with_max_attributes_per_event ( mut self , max_attributes : u32 ) -> Self {
9292 self . span_limits . max_attributes_per_event = max_attributes;
@@ -96,7 +96,7 @@ impl Config {
9696 /// Specify the number of attributes one link can have.
9797 #[ deprecated(
9898 since = "0.27.1" ,
99- note = "Config is becoming private. Please use Builder::with_sampler (...) instead."
99+ note = "Config is becoming private. Please use Builder::with_max_attributes_per_link (...) instead."
100100 ) ]
101101 pub fn with_max_attributes_per_link ( mut self , max_attributes : u32 ) -> Self {
102102 self . span_limits . max_attributes_per_link = max_attributes;
@@ -106,7 +106,7 @@ impl Config {
106106 /// Specify all limit via the span_limits
107107 #[ deprecated(
108108 since = "0.27.1" ,
109- note = "Config is becoming private. Please use Builder::with_sampler (...) instead."
109+ note = "Config is becoming private. Please use Builder::with_span_limits (...) instead."
110110 ) ]
111111 pub fn with_span_limits ( mut self , span_limits : SpanLimits ) -> Self {
112112 self . span_limits = span_limits;
@@ -116,7 +116,7 @@ impl Config {
116116 /// Specify the attributes representing the entity that produces telemetry
117117 #[ deprecated(
118118 since = "0.27.1" ,
119- note = "Config is becoming private. Please use Builder::with_sampler (...) instead."
119+ note = "Config is becoming private. Please use Builder::with_resource (...) instead."
120120 ) ]
121121 pub fn with_resource ( mut self , resource : Resource ) -> Self {
122122 self . resource = Cow :: Owned ( resource) ;
0 commit comments