Delen via


TracingLink Class

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

public class TracingLink

Represents tracing link that connects one trace to another.

Constructor Summary

Constructor Description
TracingLink(Context context)

Creates link traces without attributes

TracingLink(Context context, Map<String,Object> attributes)

Creates link with attributes.

Method Summary

Modifier and Type Method and Description
Map<String,Object> getAttributes()

Gets link attributes

Context getContext()

Gets linked context

Methods inherited from java.lang.Object

Constructor Details

public TracingLink(Context context)

Creates link traces without attributes

Parameters:

context - instance of context that contains span context

public TracingLink(Context context, Map attributes)

Creates link with attributes.

Parameters:

context - instance of context that contains span context
attributes - instance of link attributes

Method Details

public Map getAttributes()

Gets link attributes

Returns:

attributes instance

public Context getContext()

Gets linked context

Returns:

context instance

Applies to