Documentation
¶
Index ¶
- Variables
- func CreateOtelProcessContextMapping(data []byte) error
- func PublishProcessContext(pc *ProcessContext) error
- type ProcessContext
- func (*ProcessContext) Descriptor() ([]byte, []int)deprecated
- func (x *ProcessContext) GetExtraAttributes() []*v11.KeyValue
- func (x *ProcessContext) GetResource() *v1.Resource
- func (*ProcessContext) ProtoMessage()
- func (x *ProcessContext) ProtoReflect() protoreflect.Message
- func (x *ProcessContext) Reset()
- func (x *ProcessContext) String() string
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 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
Click to show internal directories.
Click to hide internal directories.