Clarify inject/extract exceptions
See original GitHub issueThe most common outcome of inject/extract methods that instrumentation needs to deal with are
- success
- unsupported format
- empty carrier (extract only)
- 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.
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (9 by maintainers)
Top 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 >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
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.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.