Skip to content

Commit b72cab5

Browse files
hectorhdzgtoumorokoshi
authored andcommitted
Use current logger instead of global (#351)
All loggers should be local to the module, rather than use the global.
1 parent 4458698 commit b72cab5

File tree

1 file changed

+2
-2
lines changed
  • opentelemetry-sdk/src/opentelemetry/sdk/trace/export

1 file changed

+2
-2
lines changed

opentelemetry-sdk/src/opentelemetry/sdk/trace/export/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,11 @@ def on_start(self, span: Span) -> None:
137137

138138
def on_end(self, span: Span) -> None:
139139
if self.done:
140-
logging.warning("Already shutdown, dropping span.")
140+
logger.warning("Already shutdown, dropping span.")
141141
return
142142
if len(self.queue) == self.max_queue_size:
143143
if not self._spans_dropped:
144-
logging.warning("Queue is full, likely spans will be dropped.")
144+
logger.warning("Queue is full, likely spans will be dropped.")
145145
self._spans_dropped = True
146146

147147
self.queue.appendleft(span)

0 commit comments

Comments
 (0)