File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
instrumentation/opentelemetry-instrumentation-urllib3
src/opentelemetry/instrumentation/urllib3 Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3131
3232### Fixed
3333
34+ - Fixed urllib3 instrumentation example in instrumentation documentation
35+ ([ #1793 ] ( https://github.com/open-telemetry/opentelemetry-python-contrib/pull/1793 ) )
3436- Fix elasticsearch db.statement attribute to be sanitized by default
3537 ([ #1758 ] ( https://github.com/open-telemetry/opentelemetry-python-contrib/pull/1758 ) )
3638- Fix ` AttributeError ` when AWS Lambda handler receives a list event
Original file line number Diff line number Diff line change @@ -38,8 +38,8 @@ The hooks can be configured as follows:
3838 def response_hook (span , request , response ):
3939 pass
4040
41- URLLib3Instrumentor.instrument(
42- request_hook = request_hook, response_hook = response_hook)
41+ URLLib3Instrumentor() .instrument(
42+ request_hook = request_hook, response_hook = response_hook
4343 )
4444
4545 Exclude lists
Original file line number Diff line number Diff line change @@ -56,8 +56,8 @@ def request_hook(span, request):
5656 def response_hook(span, request, response):
5757 pass
5858
59- URLLib3Instrumentor.instrument(
60- request_hook=request_hook, response_hook=response_hook)
59+ URLLib3Instrumentor() .instrument(
60+ request_hook=request_hook, response_hook=response_hook
6161 )
6262
6363Exclude lists
You can’t perform that action at this time.
0 commit comments