We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddd199f commit ff2d035Copy full SHA for ff2d035
opentelemetry-sdk/src/opentelemetry/sdk/_logs/_internal/export/__init__.py
@@ -123,12 +123,16 @@ def __init__(self, exporter: LogExporter):
123
self._shutdown = False
124
125
def on_emit(self, log_data: LogData):
126
- print(traceback.extract_stack())
127
# Prevent entering a recursive loop.
128
if (
129
sum(
130
item.name == "on_emit"
131
- and item.filename.endswith("export/__init__.py")
+ and (
+ item.filename.endswith("export/__init__.py")
132
+ or item.filename.endswith(
133
+ r"export\__init__.py"
134
+ ) # backward slash on windows..
135
+ )
136
for item in traceback.extract_stack()
137
)
138
> 3
0 commit comments