File tree Expand file tree Collapse file tree 3 files changed +13
-2
lines changed
opentelemetry-instrumentation/src/opentelemetry/instrumentation Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -11,10 +11,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111
1212- ` opentelemetry-instrumentation-kafka-python ` Instrument temporary fork, kafka-python-ng
1313 inside kafka-python's instrumentation
14- ([ #2537 ] ( https://github.com/open-telemetry/opentelemetry-python-contrib/pull/2537 ) ))
14+ ([ #2537 ] ( https://github.com/open-telemetry/opentelemetry-python-contrib/pull/2537 ) )
1515
1616## Breaking changes
1717
18+ - ` opentelemetry-bootstrap ` Remove ` opentelemetry-instrumentation-aws-lambda ` from the defaults instrumentations
19+ ([ #2786 ] ( https://github.com/open-telemetry/opentelemetry-python-contrib/pull/2786 ) )
20+
1821## Fixed
1922
2023- ` opentelemetry-instrumentation-fastapi ` fix ` fastapi ` auto-instrumentation by removing ` fastapi-slim ` support, ` fastapi-slim ` itself is discontinued from maintainers
Original file line number Diff line number Diff line change 187187]
188188default_instrumentations = [
189189 "opentelemetry-instrumentation-asyncio==0.48b0.dev" ,
190- "opentelemetry-instrumentation-aws-lambda==0.48b0.dev" ,
191190 "opentelemetry-instrumentation-dbapi==0.48b0.dev" ,
192191 "opentelemetry-instrumentation-logging==0.48b0.dev" ,
193192 "opentelemetry-instrumentation-sqlite3==0.48b0.dev" ,
Original file line number Diff line number Diff line change 5353 "bootstrap_gen.py" ,
5454)
5555
56+ # AWS Lambda instrumentation is excluded from the default list because it often
57+ # requires specific configurations and dependencies that may not be set up
58+ # in all environments. Instead, users who need AWS Lambda support can opt-in
59+ # by manually adding it to their environment.
60+ # See https://github.com/open-telemetry/opentelemetry-python-contrib/issues/2787
61+ packages_to_exclude = ["opentelemetry-instrumentation-aws-lambda" ]
62+
5663
5764def main ():
5865 # pylint: disable=no-member
5966 default_instrumentations = ast .List (elts = [])
6067 libraries = ast .List (elts = [])
6168 for pkg in get_instrumentation_packages ():
69+ if pkg .get ("name" ) in packages_to_exclude :
70+ continue
6271 if not pkg ["instruments" ]:
6372 default_instrumentations .elts .append (ast .Str (pkg ["requirement" ]))
6473 for target_pkg in pkg ["instruments" ]:
You can’t perform that action at this time.
0 commit comments