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

Add SetVerboseDatabaseStatements and Enrich options to the Redis instrumentation #2198

Merged
merged 10 commits into from
Aug 10, 2021

Conversation

ejsmith
Copy link
Contributor

@ejsmith ejsmith commented Jul 27, 2021

This is a different take on adding keys to the Redis instrumentation similar to #1972. It puts it behind a new SetVerboseDatabaseStatements flag so that no performance penalty is incurred if the option isn't enabled. It also adds an Enrich option like other instrumentations have. The Enrich option could technically be used to add the SetVerboseDatabaseStatements functionality, but it seems like it's nice to have that ability built into the instrumentation.

@ejsmith ejsmith requested a review from a team as a code owner July 27, 2021 21:33
@codecov
Copy link

codecov bot commented Aug 4, 2021

Codecov Report

Merging #2198 (cd1dfd1) into main (67b6a83) will decrease coverage by 0.70%.
The diff coverage is 11.42%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2198      +/-   ##
==========================================
- Coverage   80.87%   80.17%   -0.71%     
==========================================
  Files         226      226              
  Lines        7096     7161      +65     
==========================================
+ Hits         5739     5741       +2     
- Misses       1357     1420      +63     
Impacted Files Coverage Δ
...mentation/RedisProfilerEntryToActivityConverter.cs 37.00% <6.06%> (-57.60%) ⬇️
...ngeRedis/StackExchangeRedisCallsInstrumentation.cs 95.23% <100.00%> (ø)
...s/StackExchangeRedisCallsInstrumentationOptions.cs 100.00% <100.00%> (ø)
...ZPages/Implementation/ZPagesExporterEventSource.cs 56.25% <0.00%> (-6.25%) ⬇️
...Telemetry/Internal/SelfDiagnosticsEventListener.cs 96.85% <0.00%> (-0.79%) ⬇️

@ejsmith ejsmith changed the title Add SetCommandKey and Enrich options to the Redis instrumentation Add SetVerboseDatabaseStatements and Enrich options to the Redis instrumentation Aug 6, 2021
Copy link
Member

@CodeBlanch CodeBlanch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ejsmith
Copy link
Contributor Author

ejsmith commented Aug 10, 2021

@CodeBlanch have you guys thought about moving this to the contrib project?

@cijothomas cijothomas merged commit f644373 into open-telemetry:main Aug 10, 2021
@ejsmith
Copy link
Contributor Author

ejsmith commented Aug 10, 2021

Thanks @cijothomas @CodeBlanch !

@MoienTajik
Copy link
Contributor

When will this be released on NuGet?

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.

None yet

4 participants