NAME

Google::Monitoring::V3::SpanContext - Compiled Protocol Buffers messages for google/monitoring/v3/span_context.proto

SYNOPSIS

use Google::Monitoring::V3::SpanContext;

my $msg = Google::Monitoring::V3::SpanContext::SpanContext->new({
    span_name => $span_name,
});

# Read or update a field
my $val = $msg->span_name();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Monitoring::V3::SpanContext::SpanContext->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/monitoring/v3/span_context.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Monitoring::V3::SpanContext::SpanContext

The context of a span. This is attached to an [Exemplar][google.api.Distribution.Exemplar] in [Distribution][google.api.Distribution] values during aggregation.

It contains the name of a span with format:

projects/[PROJECT_ID_OR_NUMBER]/traces/[TRACE_ID]/spans/[SPAN_ID]

Inherits from Protobuf::Message.

Accessors

  • $msg->span_name() / $msg->span_name($value)

    Type: String

    The resource name of the span. The format is:

    projects/[PROJECT_ID_OR_NUMBER]/traces/[TRACE_ID]/spans/[SPAN_ID]

    `[TRACE_ID]` is a unique identifier for a trace within a project; it is a 32-character hexadecimal encoding of a 16-byte array.

    `[SPAN_ID]` is a unique identifier for a span within a trace; it is a 16-character hexadecimal encoding of an 8-byte array.

SEE ALSO

Protobuf, Protobuf::Message, Google::Monitoring::V3::SpanContext::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.