// Copyright The OpenTelemetry Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // @generated by protoc-gen-es v1.10.0 // @generated from file opentelemetry/proto/processcontext/v1development/process_context.proto (package opentelemetry.proto.processcontext.v1development, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3 } from "@bufbuild/protobuf"; import type { Resource } from "../../resource/v1/resource_pb.js"; import type { KeyValue } from "../../common/v1/common_pb.js"; /** * 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. It is not part of OTLP and is not * exchanged via the OpenTelemetry Collector. * * See OTEP 4719 (https://github.com/open-telemetry/opentelemetry-specification/blob/main/oteps/profiles/4719-process-ctx.md) * for details of this mechanism. * * Status: [Development] * * @generated from message opentelemetry.proto.processcontext.v1development.ProcessContext */ export declare class ProcessContext extends Message { /** * The resource for this process. * If this field is not set then no resource info is known. * * @generated from field: opentelemetry.proto.resource.v1.Resource resource = 1; */ resource?: Resource; /** * 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/ * * @generated from field: repeated opentelemetry.proto.common.v1.KeyValue attributes = 2; */ attributes: KeyValue[]; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "opentelemetry.proto.processcontext.v1development.ProcessContext"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ProcessContext; static fromJson(jsonValue: JsonValue, options?: Partial): ProcessContext; static fromJsonString(jsonString: string, options?: Partial): ProcessContext; static equals(a: ProcessContext | PlainMessage | undefined, b: ProcessContext | PlainMessage | undefined): boolean; }