You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Logging API accepts optional Context at LogRecord init else get_current; deprecates trace_id, span_id, trace_flags (#4597)
* Logs API/SDK accepts additional otel context
* Changelog
* LoggingHandler translates to LogRecord with current Otel context
* Add LogRecord init priority for context's span over old span info
* Add LogRecord serialized_context for to_json of arbitrary objects
* Add test coverage
* Changelog
* lint
* Fix tests
* Changelog
* Rm Context inclusion from to_json of LogRecord
* Revision: logs SDK does get_current, overload init and deprecate trace_id etc
* Simplify test
* Changelog
* Use typing_extensions deprecated, not custom
* Update LogRecord API; simplify test
* Force logrecord api kwarg-only to avoid param order issues
* Add special LogDeprecatedInitWarning that logs once
* Rm deprecated decorator
* api too
* catch_warnings instead of assertLogs in test
* changelog
* Rm with assertLogs for py3.13 ubuntu test
---------
Co-authored-by: Emídio Neto <[email protected]>
0 commit comments