Skip to content

Commit 2cf8e75

Browse files
authored
Apply suggestions from code review
1 parent ba32bc8 commit 2cf8e75

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1717
([#4494](https://github.com/open-telemetry/opentelemetry-python/pull/4494))
1818
- Improve CI by cancelling stale runs and setting timeouts
1919
([#4498](https://github.com/open-telemetry/opentelemetry-python/pull/4498))
20-
- opentelemetry-sdk: use release candidate code attributes
20+
- opentelemetry-sdk: use stable code attributes: `code.function` -> `code.function.name`, `code.lineno` -> `code.line.number`, `code.filepath` -> `code.file.path`
2121
([#4508](https://github.com/open-telemetry/opentelemetry-python/pull/4508))
2222

2323
## Version 1.31.0/0.52b0 (2025-03-12)

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ def _get_attributes(record: logging.LogRecord) -> Attributes:
499499
value.args[0]
500500
)
501501
if tb is not None:
502-
# https://github.com/open-telemetry/opentelemetry-specification/blob/9fa7c656b26647b27e485a6af7e38dc716eba98a/specification/trace/semantic_conventions/exceptions.md#stacktrace-representation
502+
# https://opentelemetry.io/docs/specs/semconv/exceptions/exceptions-spans/#stacktrace-representation
503503
attributes[exception_attributes.EXCEPTION_STACKTRACE] = (
504504
"".join(traceback.format_exception(*record.exc_info))
505505
)

0 commit comments

Comments
 (0)