Official Content

Creates span instances, which represent a single operation within a trace.

TracerEO_png

You can find the Tracer External Object in the KB Explorer within the GeneXusObservability module, which in turn is located within the GeneXus module.

Methods

All the methods of this External Object are static.

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, kind: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, context:TraceContext, kind: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

Scope

Generators: .NET, Java

Availability

Since GeneXus 18 Upgrade 9.

 

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