Skip to content

Add SetVerboseDatabaseStatements and Enrich options to the Redis instrumentation#2198

Merged
cijothomas merged 10 commits into
open-telemetry:mainfrom
ejsmith:redis-keys
Aug 10, 2021
Merged

Add SetVerboseDatabaseStatements and Enrich options to the Redis instrumentation#2198
cijothomas merged 10 commits into
open-telemetry:mainfrom
ejsmith:redis-keys

Conversation

@ejsmith

@ejsmith ejsmith commented Jul 27, 2021

Copy link
Copy Markdown
Contributor

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 July 27, 2021 21:33
@codecov

codecov Bot commented Aug 4, 2021

Copy link
Copy Markdown

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

@CodeBlanch CodeBlanch left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@ejsmith

ejsmith commented Aug 10, 2021

Copy link
Copy Markdown
Contributor Author

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

Comment thread src/OpenTelemetry.Instrumentation.StackExchangeRedis/README.md Outdated
Comment thread src/OpenTelemetry.Instrumentation.StackExchangeRedis/README.md Outdated
@cijothomas cijothomas merged commit f644373 into open-telemetry:main Aug 10, 2021
@ejsmith

ejsmith commented Aug 10, 2021

Copy link
Copy Markdown
Contributor Author

Thanks @cijothomas @CodeBlanch !

@MoienTajik

Copy link
Copy Markdown
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.

4 participants