Skip to content

[StackExchangeRedis] Fix benchmarks#4376

Merged
martincostello merged 3 commits into
open-telemetry:mainfrom
martincostello:fix-redis-benchmarks
May 11, 2026
Merged

[StackExchangeRedis] Fix benchmarks#4376
martincostello merged 3 commits into
open-telemetry:mainfrom
martincostello:fix-redis-benchmarks

Conversation

@martincostello
Copy link
Copy Markdown
Member

@martincostello martincostello commented May 8, 2026

Changes

Fix two benchmarks broken by #4095.

This is also causing the daily job that publishes packages to MyGet to fail.

Merge requirement checklist

  • CONTRIBUTING guidelines followed (license requirements, nullable enabled, static analysis, etc.)
  • Unit tests added/updated
  • Appropriate CHANGELOG.md files updated for non-trivial changes
  • Changes in public API reviewed (if applicable)

@martincostello martincostello marked this pull request as ready for review May 8, 2026 14:13
Copilot AI review requested due to automatic review settings May 8, 2026 14:13
@martincostello martincostello requested a review from a team as a code owner May 8, 2026 14:13
@martincostello martincostello enabled auto-merge May 8, 2026 14:13
@github-actions github-actions Bot added perf Performance related comp:instrumentation.stackexchangeredis Things related to OpenTelemetry.Instrumentation.StackExchangeRedis labels May 8, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented May 8, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.55%. Comparing base (9c95003) to head (8d880d5).
✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4376      +/-   ##
==========================================
- Coverage   75.68%   75.55%   -0.14%     
==========================================
  Files         456      456              
  Lines       18246    18246              
==========================================
- Hits        13809    13785      -24     
- Misses       4437     4461      +24     
Flag Coverage Δ
unittests-Contrib.Shared.Tests 89.52% <ø> (ø)
unittests-Exporter.Geneva 54.70% <ø> (-0.27%) ⬇️
unittests-Exporter.InfluxDB 95.81% <ø> (ø)
unittests-Exporter.OneCollector 94.63% <ø> (ø)
unittests-Extensions 90.78% <ø> (ø)
unittests-Extensions.Enrichment 100.00% <ø> (ø)
unittests-Extensions.Enrichment.AspNetCore 86.27% <ø> (ø)
unittests-Extensions.Enrichment.Http 94.33% <ø> (ø)
unittests-Instrumentation.AWS 85.22% <ø> (ø)
unittests-Instrumentation.AspNet 78.04% <ø> (ø)
unittests-Instrumentation.AspNetCore 72.11% <ø> (ø)
unittests-Instrumentation.Cassandra 92.85% <ø> (ø)
unittests-Instrumentation.ConfluentKafka 78.52% <ø> (ø)
unittests-Instrumentation.ElasticsearchClient 80.60% <ø> (ø)
unittests-Instrumentation.EntityFrameworkCore 81.39% <ø> (ø)
unittests-Instrumentation.EventCounters 77.67% <ø> (ø)
unittests-Instrumentation.GrpcCore 91.34% <ø> (ø)
unittests-Instrumentation.GrpcNetClient 79.09% <ø> (ø)
unittests-Instrumentation.Hangfire 88.91% <ø> (ø)
unittests-Instrumentation.Http 75.24% <ø> (ø)
unittests-Instrumentation.Owin 88.62% <ø> (ø)
unittests-Instrumentation.Process 100.00% <ø> (ø)
unittests-Instrumentation.Quartz 78.76% <ø> (ø)
unittests-Instrumentation.Remoting 66.06% <ø> (ø)
unittests-Instrumentation.Runtime 100.00% <ø> (ø)
unittests-Instrumentation.ServiceFabricRemoting 40.83% <ø> (ø)
unittests-Instrumentation.SqlClient 84.36% <ø> (ø)
unittests-Instrumentation.StackExchangeRedis 93.78% <ø> (ø)
unittests-Instrumentation.Wcf 82.60% <ø> (ø)
unittests-OpAmp.Client 83.64% <ø> (-0.62%) ⬇️
unittests-PersistentStorage 68.12% <ø> (-1.17%) ⬇️
unittests-Resources.AWS 74.49% <ø> (ø)
unittests-Resources.Azure 88.31% <ø> (ø)
unittests-Resources.Container 67.34% <ø> (ø)
unittests-Resources.Gcp 71.42% <ø> (ø)
unittests-Resources.Host 72.26% <ø> (ø)
unittests-Resources.OperatingSystem 76.98% <ø> (ø)
unittests-Resources.Process 90.47% <ø> (ø)
unittests-Resources.ProcessRuntime 79.59% <ø> (ø)
unittests-Sampler.AWS 96.39% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.
see 7 files with indirect coverage changes

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes StackExchange.Redis benchmark projects that broke after #4095 changed how the Redis ActivitySource is exposed/identified (now using an ActivitySource instance created via ActivitySourceFactory).

Changes:

  • Update benchmark ActivityListener.ShouldListenTo predicates to compare against StackExchangeRedisConnectionInstrumentation.ActivitySource.Name instead of the removed ActivitySourceName constant.
  • Apply the same fix to both affected benchmark classes.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
test/OpenTelemetry.Instrumentation.StackExchangeRedis.Benchmarks/RedisProfilerEntryToActivityConverterBenchmarks.cs Fix listener source-name comparison to use ActivitySource.Name.
test/OpenTelemetry.Instrumentation.StackExchangeRedis.Benchmarks/RedisProfilerDrainSessionBenchmarks.cs Fix listener source-name comparison to use ActivitySource.Name.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Add benchmarks to `.proj` file.
@github-actions github-actions Bot requested a review from matt-hensley May 8, 2026 14:49
@github-actions github-actions Bot added the infra Infra work - CI/CD, code coverage, linters label May 8, 2026
@martincostello martincostello added this pull request to the merge queue May 11, 2026
Merged via the queue into open-telemetry:main with commit d08b817 May 11, 2026
913 of 918 checks passed
@martincostello martincostello deleted the fix-redis-benchmarks branch May 11, 2026 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp:instrumentation.stackexchangeredis Things related to OpenTelemetry.Instrumentation.StackExchangeRedis infra Infra work - CI/CD, code coverage, linters perf Performance related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants