|
attributes[SpanAttributes.CODE_FILEPATH] = record.pathname |
|
attributes[SpanAttributes.CODE_FUNCTION] = record.funcName |
|
attributes[SpanAttributes.CODE_LINENO] = record.lineno |
There is no formal conventions defining if logs SDK/bridges should populate code attributes. Also, those attributes are not stable (yet).
The recommendation is to
Part of open-telemetry/community#1751
opentelemetry-python/opentelemetry-sdk/src/opentelemetry/sdk/_logs/_internal/__init__.py
Lines 482 to 484 in 59d6754
There is no formal conventions defining if logs SDK/bridges should populate
codeattributes. Also, those attributes are not stable (yet).The recommendation is to
SpanAttributesand use https://github.com/open-telemetry/opentelemetry-python/blob/main/opentelemetry-semantic-conventions/src/opentelemetry/semconv/_incubating/attributes/code_attributes.py to make the status obvious via the import pathPart of open-telemetry/community#1751