Class OpenCensusSpan (6.69.0)

public class OpenCensusSpan implements ISpan

Inheritance

java.lang.Object > OpenCensusSpan

Implements

com.google.cloud.spanner.ISpan

Constructors

OpenCensusSpan(Span openCensusSpan)

public OpenCensusSpan(Span openCensusSpan)
Parameter
Name Description
openCensusSpan io.opencensus.trace.Span

Methods

addAnnotation(String message)

public void addAnnotation(String message)
Parameter
Name Description
message String

addAnnotation(String message, String key, String value)

public void addAnnotation(String message, String key, String value)
Parameters
Name Description
message String
key String
value String

addAnnotation(String message, String key, long value)

public void addAnnotation(String message, String key, long value)
Parameters
Name Description
message String
key String
value long

addAnnotation(String message, Throwable e)

public void addAnnotation(String message, Throwable e)
Parameters
Name Description
message String
e Throwable

addAnnotation(String message, Map<String,Object> attributes)

public void addAnnotation(String message, Map<String,Object> attributes)

Adds an annotation to the OpenCensus and OpenTelemetry span.

Parameters
Name Description
message String
attributes Map<String,Object>

end()

public void end()

setStatus(ErrorCode errorCode)

public void setStatus(ErrorCode errorCode)
Parameter
Name Description
errorCode ErrorCode

setStatus(Throwable e)

public void setStatus(Throwable e)
Parameter
Name Description
e Throwable