Skip to content

Commit

Permalink
corrected instrumentation example in urllib3
Browse files Browse the repository at this point in the history
  • Loading branch information
yashaswi2000 committed May 12, 2023
1 parent 1a1163e commit 45581df
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed

- Fixed urllib3 instrumentation example in instrumentation documentation
([#1793](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/1793))
- Fix elasticsearch db.statement attribute to be sanitized by default
([#1758](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/1758))
- Fix `AttributeError` when AWS Lambda handler receives a list event
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ The hooks can be configured as follows:
def response_hook(span, request, response):
pass
URLLib3Instrumentor.instrument(
request_hook=request_hook, response_hook=response_hook)
URLLib3Instrumentor().instrument(
request_hook=request_hook, response_hook=response_hook
)
Exclude lists
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ def request_hook(span, request):
def response_hook(span, request, response):
pass
URLLib3Instrumentor.instrument(
request_hook=request_hook, response_hook=response_hook)
URLLib3Instrumentor().instrument(
request_hook=request_hook, response_hook=response_hook
)
Exclude lists
Expand Down

0 comments on commit 45581df

Please sign in to comment.