OpenCensus spans cap number of attributes at 32
See original GitHub issuePlease 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
let span = tracer.startChildSpan({name, kind: 2});
let i = 0;
for ( ; i < 35; i++ ){
span.addAttribute(`attr ${i}`, i);
}
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?
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
Span - OpenCensus
Spans are identified by a SpanID and each span belongs to a single trace. Each trace is uniquely identified by a TraceID which...
Read more >Getting Started with OpenTelemetry for Java - The New Stack
The following is a simple example that shows how to create a tracer, add a root and two child spans with some attributes,...
Read more >Tracing 100k+ spans in a single request - Razorpay Engineering
Fixing an issue with the Opencensus implementation for PHP allowed us to scale up distributed tracing to over 100k+ spans in a single ......
Read more >Using AMQ Streams on RHEL Red Hat AMQ 7.6
ZooKeeper can run in clusters with an even number of nodes. ... Yammer rate metrics have the following attributes for monitoring requests: Count;...
Read more >Package List — Spack 0.20.0.dev0 documentation
It provides many routines from the list of standard C99 math functions. ... Versions: 1.10.32, 1.9.247; Build Dependencies: cmake, ninja, zlib, curl ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 😃