object TraceContext extends Serializable
- Alphabetic
- By Inheritance
- TraceContext
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- val empty: TraceContext
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def fromByteArray(bytes: Array[Byte]): ParsingResult[TraceContext]
- def fromByteArraySafe(logger: Logger)(bytes: Array[Byte]): TraceContext
Construct a TraceContext from provided protobuf bytes.
Construct a TraceContext from provided protobuf bytes. Errors will be logged at a WARN level using the provided storageLogger and an empty TraceContext will be returned.
- def fromByteString(bytes: ByteString): ParsingResult[TraceContext]
- def fromDamlTelemetryContext(telemetryContext: TelemetryContext): TraceContext
Create a trace context from a telemetry context provided by the ledger-api server
- def fromGrpcContext[A](fn: (TraceContext) => A): A
Run a block taking a TraceContext which has been constructed from the GRPC context.
Run a block taking a TraceContext which has been constructed from the GRPC context. Typically used to wrap GRPC server methods.
- def fromProtoSafeV0Opt(logger: Logger)(traceContextP: Option[v0.TraceContext]): TraceContext
Construct a TraceContext from provided protobuf structure.
Construct a TraceContext from provided protobuf structure. Errors will be logged at a WARN level using the provided storageLogger and an empty TraceContext will be returned.
- def fromProtoV0(tc: v0.TraceContext): ParsingResult[TraceContext]
- def fromProtoV0Opt(traceContextP: Option[v0.TraceContext]): ParsingResult[TraceContext]
- def fromProtoVersioned(traceContextP: VersionedTraceContext): ParsingResult[TraceContext]
- def fromW3CTraceParent(traceParent: String): TraceContext
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- implicit def getResultTraceContextOption(implicit getResultByteArrayO: GetResult[Option[Array[Byte]]]): GetResult[Option[TraceContext]]
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def ofBatch(items: Iterable[HasTraceContext])(logger: TracedLogger): TraceContext
Where we use batching operations create a separate trace-context but mention this in a debug log statement linking it to the trace ids of the contained items.
Where we use batching operations create a separate trace-context but mention this in a debug log statement linking it to the trace ids of the contained items. This will allow manual tracing via logs if ever needed.
- implicit def readTraceContextFromDb(implicit getResultByteArray: GetResult[Array[Byte]]): GetResult[TraceContext]
- implicit def setParameterTraceContextOption(implicit setParameterByteArrayO: SetParameter[Option[Array[Byte]]]): SetParameter[Option[TraceContext]]
- Annotations
- @SuppressWarnings()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- val todo: TraceContext
Used for where a trace context should ideally be passed but support has not yet been added.
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def withNewTraceContext[A](fn: (TraceContext) => A): A
Run a block with an entirely new TraceContext.
- def withTraceContext[A, B](fn: (TraceContext) => (A) => B)(traced: Traced[A]): B
Run a block with a TraceContext taken from a Traced wrapper.
- implicit def writeTraceContextToDb(implicit setParameterByteArray: SetParameter[Array[Byte]]): SetParameter[TraceContext]
- object Implicits