otelprocesscontext

package
v2.8.0-rc.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2026 License: Apache-2.0, BSD-3-Clause, Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrPayloadTooLarge = errors.New("data size is too large for the mapping size")

ErrPayloadTooLarge is returned when the payload exceeds the fixed mapping size

View Source
var File_processcontext_proto protoreflect.FileDescriptor

Functions

func CreateOtelProcessContextMapping

func CreateOtelProcessContextMapping(data []byte) error

func PublishProcessContext

func PublishProcessContext(pc *ProcessContext) error

PublishProcessContext marshals pc and publishes it to the process context mapping.

Types

type ProcessContext

type ProcessContext struct {

	// The resource attributes describing this process.
	//
	// Attribute keys MUST be unique (it is not allowed to have more than one
	// attribute with the same key). The behavior of software that receives
	// duplicated keys can be unpredictable.
	//
	// Attributes SHOULD follow OpenTelemetry semantic conventions where applicable.
	// See: https://opentelemetry.io/docs/specs/semconv/
	Resource *v1.Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
	// Additional attributes to share with external readers that are not part of
	// the standard Resource. [Optional]
	//
	// This field allows publishers to include supplementary key-value pairs that
	// may be useful for external readers but are not part of the SDK's configured
	// Resource.
	//
	// Consider adding any keys here to the profiles semantic conventions in
	// https://opentelemetry.io/docs/specs/semconv/general/profiles/
	ExtraAttributes []*v11.KeyValue `protobuf:"bytes,2,rep,name=extra_attributes,json=extraAttributes,proto3" json:"extra_attributes,omitempty"`
	// contains filtered or unexported fields
}

ProcessContext represents the payload for the process context sharing mechanism.

This message is designed to be published by OpenTelemetry SDKs via a memory-mapped region, allowing external readers (such as the OpenTelemetry eBPF Profiler) to discover and read resource attributes from instrumented processes without requiring direct integration or process activity.

func (*ProcessContext) Descriptor deprecated

func (*ProcessContext) Descriptor() ([]byte, []int)

Deprecated: Use ProcessContext.ProtoReflect.Descriptor instead.

func (*ProcessContext) GetExtraAttributes

func (x *ProcessContext) GetExtraAttributes() []*v11.KeyValue

func (*ProcessContext) GetResource

func (x *ProcessContext) GetResource() *v1.Resource

func (*ProcessContext) ProtoMessage

func (*ProcessContext) ProtoMessage()

func (*ProcessContext) ProtoReflect

func (x *ProcessContext) ProtoReflect() protoreflect.Message

func (*ProcessContext) Reset

func (x *ProcessContext) Reset()

func (*ProcessContext) String

func (x *ProcessContext) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL