public final class StartSpanOptions extends Object
| Constructor and Description |
|---|
StartSpanOptions(SpanKind kind)
Describes span with given name and kind
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
getAttributes()
Gets all attributes on span that should be set before span is started.
|
SpanKind |
getSpanKind()
Gets span kind.
|
StartSpanOptions |
setAttribute(String key,
Object value)
Sets attribute on span before its started.
|
public StartSpanOptions(SpanKind kind)
kind - The kind of the span to be created.public StartSpanOptions setAttribute(String key, Object value)
key - attribute key.value - attribute value. Note that underlying tracer implementations limit supported value types:
Stringintdoublebooleanlongpublic SpanKind getSpanKind()
Copyright © 2021 Microsoft Corporation. All rights reserved.