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

Don't enforce span name length limit for spans the SDK logs #1125

Merged
merged 2 commits into from
Sep 11, 2024

Conversation

bidetofevil
Copy link
Collaborator

@bidetofevil bidetofevil commented Jul 18, 2024

Goal

Names of spans we record internally can be longer than than the custom performance traces that we have a name length restriction for. Make the validate not apply to spans logged by the SDK, i.e. internal = true.

@bidetofevil bidetofevil force-pushed the hho/activity-listener-refactor branch from 74a2e3d to cc3007f Compare July 25, 2024 18:35
@bidetofevil bidetofevil force-pushed the hho/activity-load-traces branch from a3f657c to 492b0c2 Compare July 25, 2024 18:35
Copy link

codecov bot commented Jul 25, 2024

Codecov Report

Attention: Patch coverage is 83.33333% with 1 line in your changes missing coverage. Please review.

Project coverage is 82.93%. Comparing base (27567c7) to head (27d973f).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
...droid/embracesdk/internal/spans/SpanServiceImpl.kt 75.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1125      +/-   ##
==========================================
+ Coverage   82.84%   82.93%   +0.09%     
==========================================
  Files         484      484              
  Lines       11041    11041              
  Branches     1699     1699              
==========================================
+ Hits         9147     9157      +10     
+ Misses       1152     1144       -8     
+ Partials      742      740       -2     
Files with missing lines Coverage Δ
...droid/embracesdk/internal/spans/EmbraceSpanImpl.kt 89.40% <100.00%> (ø)
...droid/embracesdk/internal/spans/SpanServiceImpl.kt 88.88% <75.00%> (ø)

... and 3 files with indirect coverage changes

@bidetofevil bidetofevil force-pushed the hho/activity-listener-refactor branch from cc3007f to de57070 Compare July 26, 2024 19:50
@bidetofevil bidetofevil force-pushed the hho/activity-load-traces branch from 492b0c2 to dce8d22 Compare July 26, 2024 19:51
Base automatically changed from hho/activity-listener-refactor to master July 26, 2024 23:30
@bidetofevil bidetofevil force-pushed the hho/activity-load-traces branch from dce8d22 to 486b738 Compare July 26, 2024 23:30
Copy link
Contributor

github-actions bot commented Jul 26, 2024

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Manifest Files

Copy link
Contributor

This PR is stale because it has been open 20 days with no activity. Remove stale label or comment or this PR will be closed in 10 days.

@bidetofevil bidetofevil force-pushed the hho/activity-load-traces branch from 3ba227a to b48775a Compare September 9, 2024 18:25
@bidetofevil bidetofevil marked this pull request as ready for review September 9, 2024 18:28
@bidetofevil bidetofevil requested a review from a team as a code owner September 9, 2024 18:28
Copy link
Contributor

@fractalwrench fractalwrench left a comment

Choose a reason for hiding this comment

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

IMO the SDK should still enforce a limit that prevents span names from being unbounded, but I'd be happy for it to be longer than what we allow for customers. Is increasing the span name length for customers so that only one limit applies universally also a simpler option?

(This all assumes the backend hasn't made any assumptions about span name length, too)

Copy link
Collaborator Author

I wanna say there's already an implicit length that is enforced at the OTel SDK level (there is for most span things), so if we can configure that to what we want, lets use that. If not, I'll add another mechanism for this.

What's reasonable for us - 2K chars?

@fractalwrench
Copy link
Contributor

Sounds reasonable!

Copy link
Contributor

@fractalwrench fractalwrench left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator Author

bidetofevil commented Sep 11, 2024

Merge activity

  • Sep 11, 12:42 PM EDT: @bidetofevil started a stack merge that includes this pull request via Graphite.
  • Sep 11, 12:43 PM EDT: Graphite rebased this pull request as part of a merge.
  • Sep 11, 1:15 PM EDT: @bidetofevil merged this pull request with Graphite.

@bidetofevil bidetofevil force-pushed the hho/activity-load-traces branch from 38bbc97 to c25d6fb Compare September 11, 2024 16:42
@bidetofevil bidetofevil force-pushed the hho/activity-load-traces branch from c25d6fb to 27d973f Compare September 11, 2024 16:56
@bidetofevil bidetofevil merged commit 3dd2cc7 into main Sep 11, 2024
4 checks passed
@bidetofevil bidetofevil deleted the hho/activity-load-traces branch September 11, 2024 17:15
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