File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010- Added py.typed file to top-level module ([ #4084 ] ( https://github.com/open-telemetry/opentelemetry-python/pull/4084 ) )
1111- Drop Final annotation from Enum in semantic conventions
1212 ([ #4085 ] ( https://github.com/open-telemetry/opentelemetry-python/pull/4085 ) )
13+ - Update log export example to not use root logger ([ #4090 ] ( https://github.com/open-telemetry/opentelemetry-python/pull/4090 ) )
1314
1415## Version 1.26.0/0.47b0 (2024-07-25)
1516
Original file line number Diff line number Diff line change 3636# Attach OTLP handler to root logger
3737logging .getLogger ().addHandler (handler )
3838
39- # Log directly
40- logging .info ("Jackdaws love my big sphinx of quartz." )
41-
4239# Create different namespaced loggers
40+ # It is recommended to not use the root logger with OTLP handler
41+ # so telemetry is collected only for the application
4342logger1 = logging .getLogger ("myapp.area1" )
4443logger2 = logging .getLogger ("myapp.area2" )
4544
You can’t perform that action at this time.
0 commit comments