question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

OpenCensus spans cap number of attributes at 32

See original GitHub issue

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

  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:closed
  • Created 4 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
jdbennet2001commented, Sep 12, 2019

Update: I’ve tested with no issue and am rolling the fix out. Thanks for all the help!

0reactions
mayurkale22commented, Sep 12, 2019

@jdbennet2001 thanks for the confirmation, glad to help you 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found