-
Notifications
You must be signed in to change notification settings - Fork 96
OpenCensus spans cap number of attributes at 32 #642
Comments
Thanks for reporting this! We define limits on the number of attributes, annotations, message events and links on each span in order to prevent an unbounded memory increase for long-running spans: https://github.com/census-instrumentation/opencensus-specs/blob/master/trace/TraceConfig.md#limits. What do you think about this? |
I have an end user who needs more than 32 attributes. The docs say:
I would assume that this would work, but the limit cannot be increased..
Is there an approved way for client code to update this value? |
Yes, correct. I will open PR to fix it |
Hey @jdbennet2001 are you waiting on a new release with this fix? I will be more than happy to release a new version. |
I am eagerly waiting for a new release to roll out the code. Thank you for following up. |
@jdbennet2001 Published in 0.0.17, let us know if you encounter any issues! |
Update: I've tested with no issue and am rolling the fix out. Thanks for all the help! |
@jdbennet2001 thanks for the confirmation, glad to help you :) |
Please answer these questions before submitting a bug report.
What version of OpenCensus are you using?
0.0.16
What version of Node are you using?
10.x
What did you do?
If possible, provide a recipe for reproducing the error.
Generate a child span, and add more than 32 attributes
What did you expect to see?
All attributes show up in Jaeger
What did you see instead?
Only 32 attributes are preserved.
Additional context
There appears to be a maximum number of attributes for each span, set here:
https://github.com/census-instrumentation/opencensus-node/blob/b2726345ccb3b97e87bf29bb18c50c7486b1e560/packages/opencensus-core/src/trace/sampler/sampler.ts#L131
Is there a reason why the maximum is set to 32?
The text was updated successfully, but these errors were encountered: