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.

How to log important dropped spans errors in AsyncReporter?

See original GitHub issue

We have a problem where sometimes all spans will be dropped in Stackdriver because the user might not have configured their GCP project correctly. The exception thrown will give the user instructions for how to fix it, however AsyncReporter will log these errors at debug level on this line. We had one user get blocked on this for a long time because they did not see the error; they only found it after changing the debug level to DEBUG by chance.

context: https://github.com/spring-cloud/spring-cloud-gcp/issues/1752

Is there some way to configure or override this behavior to specify that certain special errors are “fatal” or from user error and should be logged?

In this case, a StatusRuntimeException was thrown (this is a custom GRPC exception). We would like to be able to check the error code of this exception and if it is considered ‘fatal’, be able to log the error at error-level.

Is something like this possible?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:17 (15 by maintainers)

github_iconTop GitHub Comments

2reactions
dzoucommented, Jul 29, 2019

I’ll take a look at this.

0reactions
codefromthecryptcommented, Jul 29, 2019

actually the flush thread is single threaded… the boolean doesn’t even need to atomic or anything. should be a good first time issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

Spring Cloud Sleuth error posting spans to Zipkin
Has anyone else encountered the following problem with using Zipkin & Spring Cloud Sleuth? Seems to be a problem posting out data to...
Read more >
openzipkin/zipkin - Gitter
Sometimes, I get spurious errors that are logged in my stdout, such as: ... AsyncReporter$BoundedAsyncReporter close [E] WARNING: Dropped 1 spans due to ......
Read more >
Tracing In Microservices With Spring Cloud Sleuth - Ryan Baxter
Spring Cloud Sleuth adds two types of IDs to your logging, ... This is necessary because Spring Cloud Sleuth adds the trace id...
Read more >
Spring Cloud Sleuth
Sleuth configures the logging context with variables including the service name ... Span> myReporter() { return AsyncReporter.create(mySender()); } ...
Read more >
API Documentation | APM Go Agent Reference [2.x] - Elastic
import ( "go.elastic.co/apm/v2" ) func main() { tracer := apm. ... Spans are dropped when the created with a nil, or non-sampled transaction, ......
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