你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

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