Package brave

Class Tag<I>

java.lang.Object
brave.Tag<I>
Direct Known Subclasses:
ErrorParser

public abstract class Tag<I>
extends Object
This is a centralized type to parse a tag into any variant of a span. This also avoids the clutter of checking null or guarding on exceptions. Here's an example of a potentially expensive tag:
{@code
 SUMMARY_TAG = new Tag("summary") {
Since:
5.11
See Also:
Tags, SpanCustomizer.tag(String, String), MutableSpan.tag(String, String)
  • Constructor Details

    • Tag

      protected Tag​(String key)
      Since:
      5.11
  • Method Details