-
Notifications
You must be signed in to change notification settings - Fork 821
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
feat(opentelemetry-sdk-trace-base): implemented general limits of attributes #2430
feat(opentelemetry-sdk-trace-base): implemented general limits of attributes #2430
Conversation
…ributes Signed-off-by: Banothu Ramesh Naik <[email protected]>
Codecov Report
@@ Coverage Diff @@
## main #2430 +/- ##
==========================================
- Coverage 93.22% 93.21% -0.01%
==========================================
Files 137 137
Lines 5002 5014 +12
Branches 1057 1060 +3
==========================================
+ Hits 4663 4674 +11
- Misses 339 340 +1
|
Can someone review this PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well done. Sorry for taking so long to review!
It looks like merging broke the this PR. Please take a look. |
I will check broken changes, thanks |
Signed-off-by: Banothu Ramesh Naik <[email protected]>
@rauno56 I fixed the broken changes. |
@@ -212,6 +214,11 @@ export class Tracer implements api.Tracer { | |||
return api.context.with(contextWithSpanSet, fn, undefined, span); | |||
} | |||
|
|||
/** Returns the active {@link GeneralLimits}. */ | |||
getGeneralLimits(): GeneralLimits { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we have this function? It is not part of the interface. If it is just for testing, you can access the private field by doing tracer["_generalLimits"]
in the test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can access the way you mentioned.
I just followed the pattern we already have like getSpanLimits(): SpanLimits {
in line 223
Which problem is this PR solving?
Short description of the changes
OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT
andOTEL_ATTRIBUTE_COUNT_LIMIT
attributes as general tracer attributes.