You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: opentelemetry-sdk/CHANGELOG.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,10 @@
2
2
3
3
## vNext
4
4
5
+
## 0.27.1
6
+
7
+
Released 2024-Nov-27
8
+
5
9
-**DEPRECATED**:
6
10
-`trace::Config` methods are moving onto `TracerProvider` Builder to be consistent with other signals. See https://github.com/open-telemetry/opentelemetry-rust/pull/2303 for migration guide.
7
11
`trace::Config` is scheduled to be removed from public API in `v0.28.0`.
otel_info!(name:"LoggerNameEmpty", message = "Logger name is empty; consider providing a meaningful name. Logger will function normally and the provided name will be used as-is.");
66
70
};
71
+
otel_debug!(
72
+
name:"LoggerProvider.NewLoggerReturned",
73
+
logger_name = scope.name(),
74
+
);
67
75
Logger::new(scope,self.clone())
68
76
}
69
77
}
@@ -92,6 +100,9 @@ impl LoggerProvider {
92
100
93
101
/// Shuts down this `LoggerProvider`
94
102
pubfnshutdown(&self) -> LogResult<()>{
103
+
otel_debug!(
104
+
name:"LoggerProvider.ShutdownInvokedByUser",
105
+
);
95
106
ifself
96
107
.inner
97
108
.is_shutdown
@@ -224,6 +235,10 @@ impl Builder {
224
235
for processor in logger_provider.log_processors(){
message = "BatchLogProcessor dropped a LogRecord due to queue full/internal errors. No further log will be emitted for further drops until Shutdown. During Shutdown time, a log will be emitted with exact count of total logs dropped.");
187
+
}
180
188
}
181
189
}
182
190
@@ -192,6 +200,17 @@ impl<R: RuntimeChannel> LogProcessor for BatchLogProcessor<R> {
192
200
}
193
201
194
202
fnshutdown(&self) -> LogResult<()>{
203
+
let dropped_logs = self.dropped_logs_count.load(Ordering::Relaxed);
204
+
let max_queue_size = self.max_queue_size;
205
+
if dropped_logs > 0{
206
+
otel_warn!(
207
+
name:"BatchLogProcessor.LogsDropped",
208
+
dropped_logs_count = dropped_logs,
209
+
max_queue_size = max_queue_size,
210
+
message = "Logs were dropped due to a queue being full or other error. The count represents the total count of log records dropped in the lifetime of this BatchLogProcessor. Consider increasing the queue size and/or decrease delay between intervals."
message = "Beginning to drop span messages due to full/internal errors. No further log will be emitted for further drops until Shutdown. During Shutdown time, a log will be emitted with exact count of total spans dropped.");
266
+
}
257
267
}
258
268
}
259
269
@@ -269,6 +279,17 @@ impl<R: RuntimeChannel> SpanProcessor for BatchSpanProcessor<R> {
269
279
}
270
280
271
281
fnshutdown(&self) -> TraceResult<()>{
282
+
let dropped_spans = self.dropped_spans_count.load(Ordering::Relaxed);
283
+
let max_queue_size = self.max_queue_size;
284
+
if dropped_spans > 0{
285
+
otel_warn!(
286
+
name:"BatchSpanProcessor.Shutdown",
287
+
dropped_spans = dropped_spans,
288
+
max_queue_size = max_queue_size,
289
+
message = "Spans were dropped due to a full or closed queue. The count represents the total count of span records dropped in the lifetime of the BatchLogProcessor. Consider increasing the queue size and/or decrease delay between intervals."
0 commit comments