Skip to content

Commit b374695

Browse files
committed
minor change
1 parent 0fcdb1c commit b374695

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

  • opentelemetry-sdk/src/opentelemetry/sdk/_logs/_internal/export

opentelemetry-sdk/src/opentelemetry/sdk/_logs/_internal/export/__init__.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,14 @@ def on_emit(self, log_record: ReadWriteLogRecord):
161161
"SimpleLogRecordProcessor.on_emit has entered a recursive loop. Dropping log and exiting the loop."
162162
)
163163
return
164-
token = attach(set_value(_SUPPRESS_INSTRUMENTATION_KEY, True))
165-
attach(set_value(_ON_EMIT_RECURSION_COUNT_KEY, cnt + 1)) # pyright: ignore[reportOperatorIssue]
164+
token = attach(
165+
set_value(
166+
_SUPPRESS_INSTRUMENTATION_KEY,
167+
True,
168+
set_value(_ON_EMIT_RECURSION_COUNT_KEY, cnt + 1),
169+
)
170+
)
171+
# pyright: ignore[reportOperatorIssue]
166172
try:
167173
if self._shutdown:
168174
_logger.warning("Processor is already shutdown, ignoring call")

0 commit comments

Comments
 (0)