@@ -135,6 +135,25 @@ public void MissingPermissionsToReadEnvironmentVariable(SecurityException ex)
135135 }
136136 }
137137
138+ [ NonEvent ]
139+ public void DroppedExportProcessorItems ( string exportProcessorName , string exporterName , long droppedCount )
140+ {
141+ if ( droppedCount > 0 )
142+ {
143+ if ( this . IsEnabled ( EventLevel . Warning , EventKeywords . All ) )
144+ {
145+ this . ExistsDroppedExportProcessorItems ( exportProcessorName , exporterName , droppedCount ) ;
146+ }
147+ }
148+ else
149+ {
150+ if ( this . IsEnabled ( EventLevel . Informational , EventKeywords . All ) )
151+ {
152+ this . NoDroppedExportProcessorItems ( exportProcessorName , exporterName ) ;
153+ }
154+ }
155+ }
156+
138157 [ Event ( 1 , Message = "Span processor queue size reached maximum. Throttling spans." , Level = EventLevel . Warning ) ]
139158 public void SpanProcessorQueueIsExhausted ( )
140159 {
@@ -309,6 +328,18 @@ public void MissingPermissionsToReadEnvironmentVariable(string exception)
309328 this . WriteEvent ( 30 , exception ) ;
310329 }
311330
331+ [ Event ( 31 , Message = "'{0}' exporting to '{1}' dropped '0' items." , Level = EventLevel . Informational ) ]
332+ public void NoDroppedExportProcessorItems ( string exportProcessorName , string exporterName )
333+ {
334+ this . WriteEvent ( 31 , exportProcessorName , exporterName ) ;
335+ }
336+
337+ [ Event ( 32 , Message = "'{0}' exporting to '{1}' dropped '{2}' item(s) due to buffer full." , Level = EventLevel . Warning ) ]
338+ public void ExistsDroppedExportProcessorItems ( string exportProcessorName , string exporterName , long droppedCount )
339+ {
340+ this . WriteEvent ( 32 , exportProcessorName , exporterName , droppedCount ) ;
341+ }
342+
312343#if DEBUG
313344 public class OpenTelemetryEventListener : EventListener
314345 {
0 commit comments