Class TracingLink

java.lang.Object
com.azure.core.util.tracing.TracingLink

public class TracingLink extends Object
Represents tracing link that connects one trace to another.
  • Constructor Details

    • TracingLink

      public TracingLink(Context context)
      Creates link traces without attributes
      Parameters:
      context - instance of context that contains span context
    • TracingLink

      public TracingLink(Context context, Map<String,Object> attributes)
      Creates link with attributes.
      Parameters:
      context - instance of context that contains span context
      attributes - instance of link attributes
  • Method Details

    • getContext

      public Context getContext()
      Gets linked context
      Returns:
      context instance
    • getAttributes

      public Map<String,Object> getAttributes()
      Gets link attributes
      Returns:
      attributes instance