Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed urllib3 instrumentation example in instrumentation documentation #1793

Merged
merged 8 commits into from
Jun 16, 2023
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed

- Fixed urllib3 instrumentation example in instrumentation documentation
ocelotl marked this conversation as resolved.
Show resolved Hide resolved
([#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