Skip to content

perf: add ErrorTypeAttribute to eliminate extra slice allocation - #643

Open
gaiaz-iusipov wants to merge 4 commits into
XSAM:mainfrom
gaiaz-iusipov:error-type-attribute
Open

perf: add ErrorTypeAttribute to eliminate extra slice allocation#643
gaiaz-iusipov wants to merge 4 commits into
XSAM:mainfrom
gaiaz-iusipov:error-type-attribute

Conversation

@gaiaz-iusipov

Copy link
Copy Markdown

No description provided.

@gaiaz-iusipov
gaiaz-iusipov requested a review from XSAM as a code owner August 2, 2026 15:27
@codecov

codecov Bot commented Aug 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.7%. Comparing base (9648cf1) to head (7fc8d63).

Additional details and impacted files
@@           Coverage Diff           @@
##            main    #643     +/-   ##
=======================================
+ Coverage   85.5%   85.7%   +0.1%     
=======================================
  Files         15      15             
  Lines        694     687      -7     
=======================================
- Hits         594     589      -5     
+ Misses        74      73      -1     
+ Partials      26      25      -1     

☔ View full report in Codecov by Harness.
📢 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.

@gaiaz-iusipov

Copy link
Copy Markdown
Author

How about removing this check in this PR?

if value == "" {
    return semconv.ErrorTypeOther
}

Since, as far as I can tell, it's unreachable.

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.

1 participant