A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://opentelemetry-python.readthedocs.io/en/latest/sdk/trace.id_generator.html below:

Website Navigation


opentelemetry.sdk.trace.id_generator — OpenTelemetry Python documentation

opentelemetry.sdk.trace.id_generator
class opentelemetry.sdk.trace.id_generator.IdGenerator[source]

Bases: ABC

abstract generate_span_id()[source]

Get a new span ID.

Return type:

int

Returns:

A 64-bit int for use as a span ID

abstract generate_trace_id()[source]

Get a new trace ID.

Implementations should at least make the 64 least significant bits uniformly random. Samplers like the TraceIdRatioBased sampler rely on this randomness to make sampling decisions.

See the specification on TraceIdRatioBased.

Return type:

int

Returns:

A 128-bit int for use as a trace ID

class opentelemetry.sdk.trace.id_generator.RandomIdGenerator[source]

Bases: IdGenerator

The default ID generator for TracerProvider which randomly generates all bits when generating IDs.

generate_span_id()[source]

Get a new span ID.

Return type:

int

Returns:

A 64-bit int for use as a span ID

generate_trace_id()[source]

Get a new trace ID.

Implementations should at least make the 64 least significant bits uniformly random. Samplers like the TraceIdRatioBased sampler rely on this randomness to make sampling decisions.

See the specification on TraceIdRatioBased.

Return type:

int

Returns:

A 128-bit int for use as a trace ID


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4