Skip to content

Conversation

@cijothomas
Copy link
Member

Left existing benches untouched for now. Will consolidate all in a future date.
This is primarily comparing the costs of various span creation. Given there are multiple ways, we need to document the right choices for each scenario (or eliminate the choices). These benches are just starting point.

@cijothomas cijothomas requested a review from a team as a code owner July 23, 2025 18:27
@codecov
Copy link

codecov bot commented Jul 23, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.1%. Comparing base (643c645) to head (4421913).
Report is 1 commits behind head on main.

Additional details and impacted files
@@          Coverage Diff          @@
##            main   #3079   +/-   ##
=====================================
  Coverage   80.1%   80.1%           
=====================================
  Files        126     126           
  Lines      21957   21957           
=====================================
  Hits       17604   17604           
  Misses      4353    4353           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

// This is similar to the simple span creation, but also does the job of activating
// the span in the current context.
// It is slower than other approaches of activation due to the fact that
// context activation is done, irrespective of sampling decision.
Copy link
Member

Choose a reason for hiding this comment

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

Also, I remember you mentioned cost of mutex lock invoked here? Do we need to mention that in comment?

Copy link
Member Author

Choose a reason for hiding this comment

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

will do in the next iteration. Everytime span is retrieved from Context, this mutex gets invoked in all subsequent Span operations.

@cijothomas cijothomas merged commit e9ca158 into open-telemetry:main Jul 24, 2025
27 checks passed
@cijothomas cijothomas deleted the cijothomas/span-bench branch July 24, 2025 01:45
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