File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313 ([ #4084 ] ( https://github.com/open-telemetry/opentelemetry-python/pull/4084 ) )
1414- Drop Final annotation from Enum in semantic conventions
1515 ([ #4085 ] ( https://github.com/open-telemetry/opentelemetry-python/pull/4085 ) )
16+ - Update log export example to not use root logger ([ #4090 ] ( https://github.com/open-telemetry/opentelemetry-python/pull/4090 ) )
1617
1718## Version 1.26.0/0.47b0 (2024-07-25)
1819
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
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ dependencies = [
2929 " Deprecated >= 1.2.6" ,
3030 # FIXME This should be able to be removed after 3.12 is released if there is a reliable API
3131 # in importlib.metadata.
32- " importlib-metadata >= 6.0, <= 8.0 .0" ,
32+ " importlib-metadata >= 6.0, <= 8.2 .0" ,
3333]
3434dynamic = [
3535 " version" ,
Original file line number Diff line number Diff line change 11asgiref==3.7.2
22Deprecated==1.2.14
3- importlib-metadata==6.11 .0
3+ importlib-metadata==8.2 .0
44iniconfig==2.0.0
55packaging==24.0
66pluggy==1.5.0
You can’t perform that action at this time.
0 commit comments