Skip to content

Commit 64f28ca

Browse files
macieyngemdneto
andauthored
docs: add request_hook parameter description to RedisInstrumentor (#3247)
* docs: add request_hook parameter description to RedisInstrumentor * changelog: add missing entry in doc string for _instrument in opentelemetry-instrumentation-redis --------- Co-authored-by: Emídio Neto <[email protected]>
1 parent d7bc137 commit 64f28ca

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111
1212
## Unreleased
1313

14+
### Fixed
15+
- `opentelemetry-instrumentation-redis` Add missing entry in doc string for `def _instrument`
16+
([#3247](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3247))
17+
1418
## Version 1.30.0/0.51b0 (2025-02-03)
1519

1620
### Added

instrumentation/opentelemetry-instrumentation-redis/src/opentelemetry/instrumentation/redis/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,7 @@ def _instrument(self, **kwargs: Any):
474474
Args:
475475
**kwargs: Optional arguments
476476
``tracer_provider``: a TracerProvider, defaults to global.
477+
``request_hook``: An optional callback that is invoked right after a span is created.
477478
``response_hook``: An optional callback which is invoked right before the span is finished processing a response.
478479
"""
479480
tracer_provider = kwargs.get("tracer_provider")

0 commit comments

Comments
 (0)