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.

Clarify inject/extract exceptions

See original GitHub issue

The most common outcome of inject/extract methods that instrumentation needs to deal with are

  1. success
  2. unsupported format
  3. empty carrier (extract only)
  4. other exceptions (including invalid carrier type, corrupted carrier, etc.)

In Python API we specified exactly how tracer must react to these, specifically by throwing known exception for (2) and returning None for (3). The case (4) is usually a result of misconfiguration, so the exact exception is not that important.

I would like to have a well-defined (unchecked) exception type for (2), and specify that null must be returned for (3).

Side note: inject() documentation refers to carrier types instead of formats: @param carrier the carrier for the SpanContext state. All Tracer.inject() implementations must support io.opentracing.propagation.TextMap and java.nio.ByteBuffer.

@bensigelman @michaelsembwever

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

3reactions
michaelsembwevercommented, Aug 17, 2016

NoopSpanBuilder is not part of the API

Exactly. From the API perspective all you see is an empty SpanContext.

I’m sorry, but returning null is just a really poor way of solving this, and definitely shouldn’t be enforced at the API level.

0reactions
tedsuocommented, Jun 5, 2017

Spring cleaning here: closing this issue as it is out of date, and many things have changed since the debate stopped. Feel free to reopen this issue or create a new one if you would like to continue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

OpenTracing inject/extract in Jaeger - java - Stack Overflow
I'm new to OpenTracing. Until now I was mainly working in house tracing tool. The server is not able to extract the span...
Read more >
This is a test - Utah DEQ Document Repository
Aquifer Exemption for USDWs and Aquifer Restoration Plan . ... operated in pressurized mode shall be constructed to inject/extract through.
Read more >
OVERVIEW OF OPERATING EXPERIENCE AT 28 SITES
clarification ; filtration. LaSalle, IL ... Extract Inject Extract ... levels lower than cleanup standards, with the exception of one source area. A....
Read more >
Evaluating LNAPL Remedial Technologies for Achieving ...
the exception of excavation, which can achieve complete LNAPL removal, ... Texas guidance clarifies when LNAPL recovery is required and when a control-based ......
Read more >
Regulation of Sex Pheromone Biosynthesis in Three Plusiinae ...
again in the decapitated females without exception, ... + Inject. (extract) ... pheromone glands in order to clarify the target site,.
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