Official Content

Creates span instances, which represent a single operation within a trace.
All the methods of this External Object are static.

Methods

CurrentSpan

Gets the current span.

Return value GeneXusObservability.Span

Parameters None

CreateSpan

Creates and starts a new span, using the specified name.

Return value GeneXusObservability.Span

Parameters name: VarChar data type

CreateSpan

Creates and starts a new span, using the specified name and kind.

Return value GeneXusObservability.Span

Parameters name: VarChar data type, GeneXusObservability.SpanKind

CreateSpan

Creates and starts a new span, using the specified name, kind, and context. The context is used to set the parent of the newly created Span.

Return value GeneXusObservability.Span

Parameters name: VarChar data type, GeneXusObservability.TraceContext, GeneXusObservability.SpanKind

Considerations

Tracer Initialization

See GeneXusObservability.Tracer: Instrumentation scope

Spans creation 

NET

The creation of the new span does the following:

JAVA

The new span is not associated automatically with the current context. The Context has to be passed as explained in HowTo: Create new Spans manually

Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant