E525 Support for disabling activity events by Haydabase · Pull Request #4430 · npgsql/npgsql · GitHub
[go: up one dir, main page]

Skip to content

Support for disabling activity events#4430

Closed
Haydabase wants to merge 10 commits intonpgsql:mainfrom
Haydabase:otel-config
Closed

Support for disabling activity events#4430
Haydabase wants to merge 10 commits intonpgsql:mainfrom
Haydabase:otel-config

Conversation

@Haydabase
Copy link
@Haydabase Haydabase commented Apr 19, 2022

This PR should address #4245, allowing disabling of the received-first-response event, and introducing an "OnFirstResponse" enrich callback for consumers to implement their own recording (e.g. as a tag).

Also allowed for disabling the exception event to mirror the option available on the Http instrumentation (here).

Documentation PR: npgsql/doc#201

NOTE THIS BUILDS ON THE BRANCH FROM #4284, SO CURRENTLY INCLUDES THOSE CHANGES TOO (marked this as draft for now)

@NinoFloris
Copy link
Member

@Haydabase are you still interested in pursuing this further? As an alternative to this it seems like users might be able to (ab)use the sampling support on listeners to do this now.

@NinoFloris
Copy link
Member

Considering that I believe sampling should allow people to work around this I'll close this PR. Feel free to open another one if I missed something.

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.

2 participants

0