Skip to content

feat(instrumentation-http): Introduce contextHook #5538

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

s0
Copy link

@s0 s0 commented Mar 17, 2025

Which problem is this PR solving?

Allow for open telemetry Context to be customized with additional values.

Fixes #5537

Short description of the changes

Introduce a new option for the http instrumentation to allow users to add data to the open telemetry Context at the point it is created, with the information derived from the incoming request.

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Introduced a new unit test: should keep make the context from contextHook available

Checklist:

  • Followed the style guidelines of this project
  • Unit tests have been added
  • Documentation has been updated

Introduce a new option for the http instrumentation to allow users to
add data to the open telemetry Context at the point it is created,
with the information derived from the incoming request.
@s0 s0 requested a review from a team as a code owner March 17, 2025 22:43
Copy link

linux-foundation-easycla bot commented Mar 17, 2025

CLA Signed


The committers listed above are authorized under a signed CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

instrumentation-http: Introduce a hook to allow customizing the Context
1 participant