We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0fcdb1c commit b374695Copy full SHA for b374695
1 file changed
opentelemetry-sdk/src/opentelemetry/sdk/_logs/_internal/export/__init__.py
@@ -161,8 +161,14 @@ def on_emit(self, log_record: ReadWriteLogRecord):
161
"SimpleLogRecordProcessor.on_emit has entered a recursive loop. Dropping log and exiting the loop."
162
)
163
return
164
- token = attach(set_value(_SUPPRESS_INSTRUMENTATION_KEY, True))
165
- attach(set_value(_ON_EMIT_RECURSION_COUNT_KEY, cnt + 1)) # pyright: ignore[reportOperatorIssue]
+ token = attach(
+ set_value(
166
+ _SUPPRESS_INSTRUMENTATION_KEY,
167
+ True,
168
+ set_value(_ON_EMIT_RECURSION_COUNT_KEY, cnt + 1),
169
+ )
170
171
+ # pyright: ignore[reportOperatorIssue]
172
try:
173
if self._shutdown:
174
_logger.warning("Processor is already shutdown, ignoring call")
0 commit comments