XRay


TraceTags

Namespace: XRay
Attributes:
[<CompilationRepresentation(4)>]

Operations on trace tag collections.

Functions and values

Function or valueDescription
addBool k v m
Signature: k:string -> v:bool -> m:TraceTags -> TraceTags

Adds a bool tag.

addChannel ch
Signature: ch:string -> TraceTags -> TraceTags

Adds a channel tag.

addIf k v m
Signature: k:string -> v:string option -> m:TraceTags -> TraceTags

Adds a tag if some.

addInt32 k v m
Signature: k:string -> v:int32 -> m:TraceTags -> TraceTags

Adds an int32 tag.

addInt64 k v m
Signature: k:string -> v:int64 -> m:TraceTags -> TraceTags

Adds an int64 tag.

addMany kvps m
Signature: kvps:seq<string * string> -> m:TraceTags -> TraceTags

Adds a collection of tags.

addMessage msg t
Signature: msg:string -> t:TraceTags -> TraceTags

Adds a message tag.

addOpDuration elapsed
Signature: elapsed:TimeSpan -> TraceTags -> TraceTags

Adds a tag denoting the duration of an operation.

addOpName opName t
Signature: opName:string -> t:TraceTags -> TraceTags

Adds an operation name tag.

addRole role
Signature: role:string -> TraceTags -> TraceTags

Adds a role tag, indicating the role of the span with respect to the communication channel.

addString k v m
Signature: k:string -> v:string -> m:TraceTags -> TraceTags

Adds a tag.

addTimeSpan k v m
Signature: k:string -> v:TimeSpan -> m:TraceTags -> TraceTags

Adds a timespan tag, encoded as a string containing an int64 milliseconds.

addTimeSpanIf k v m
Signature: k:string -> v:TimeSpan option -> m:TraceTags -> TraceTags

Adds a tag if not equal to TimeSpan.Zero.

empty
Signature: TraceTags

Empty tags.

exceptTags tags
Signature: tags:Set<string> -> TraceTags -> TraceTags

Filters the set of tags to those not in the specified set of tag names.

filterByTagPrefix prefix
Signature: prefix:string -> TraceTags -> TraceTags

Filters the set of tags to those having the specified prefix.

filterByTags tags
Signature: tags:Set<string> -> TraceTags -> TraceTags

Filters the set of tags to those of the specified set of tag names.

merge t1 t2
Signature: t1:TraceTags -> t2:TraceTags -> TraceTags

Concatenates two sets of trace tags.

ofMap m
Signature: m:Map<string,string> -> TraceTags

Creates trace tags from a map.

ofSeq m
Signature: m:seq<string * string> -> TraceTags

Creates trace tags from a sequence.

roleConsumer
Signature: TraceTags -> TraceTags
roleProducer
Signature: TraceTags -> TraceTags
toMap m
Signature: m:TraceTags -> Map<string,string>

Converts trace tags to a map.

toSeq m
Signature: m:TraceTags -> seq<string * string>

Converts trace tags to a sequence.

tryFind key t
Signature: key:string -> t:TraceTags -> string option

Tries to find a tag.

tryFindParentSpanId
Signature: TraceTags -> string option
tryFindSpanId
Signature: TraceTags -> string option
tryFindTimeSpan key t
Signature: key:string -> t:TraceTags -> TimeSpan option

Tries to find a tag.

Fork me on GitHub