Interface SpanNamer

All Known Implementing Classes:
DefaultSpanNamer

public interface SpanNamer
Describes how for a given object a span should be named. In the vast majority of cases a name should be provided explicitly. In case of instrumentation where the name has to be resolved at runtime this interface will provide the name of the span.
Since:
1.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    name(Object object, String defaultValue)
    Retrieves the span name for the given object.
  • Method Details

    • name

      String name(Object object, String defaultValue)
      Retrieves the span name for the given object.
      Parameters:
      object - - object for which span name should be picked
      defaultValue - - the default valued to be returned if span name can't be calculated
      Returns:
      span name