Profiling
as of v1.45.0, OTLP v1.11.1The fourth signal: sampled stack traces and what they cost, in a format derived from pprof. Alpha in the specification, and on the wire still a development package with no compatibility promise.
- Attributes
- 12
- Messages
- 17
- Stable
- 0
- Deprecated
- 0
Rules
What the lists below cannot show: these rules live in comments in the .proto files, the OTLP specification and the convention's prose, not in the registry. Paraphrased from profiles.proto, common.proto, specification.md, profiles.md; the upstream wording wins.
Each table in
ProfilesDictionarystarts with its zero value (""instring_table,Location{}inlocation_table), so an index of0means not set. Forlink_table[0], prefer 16 and 8 zero bytes over empty ids: some codecs expect the full lengths.A dictionary item's identity is its value. A producer that does emit duplicates gives them no meaning by index or order, and a processor may remove duplicates and unreferenced items without consumers noticing.
At least one entry in
valuesortimestamps_unix_nano. With both, the two arrays have the same length and the same index is the same event. With timestamps only, each one counts as a value of 1.- SHOULDOne sample per identity
A sample's identity is
{stack_index, set_of(attribute_indices), link_index}. Samples that share it are combined by appending tovaluesandtimestamps_unix_nano, and every sample in a profile uses the same shape. attribute_tablemay hold several entries with the same key, but theattribute_indicesof one message cannot point at two of them. Keep sample attributes to bounded cardinality: a value unique to every sample defeats the dictionary.Since v1.10.0 a
KeyValuein a profiles request can carrykey_strindexin place ofkey, and anAnyValuestring_value_strindexin place of the string. Never set both. A receiver that reads only the inline fields sees empty keys.original_payloadandoriginal_payload_formatare set together or both left unset. The known formats arepprof,jfrandlinux_perf. Use it when the source carries what this format cannot represent without loss.Merged after v1.11.1 and in no release yet. The request names its format in
OTLP-Profiles-Development-Version(otlp-profiles-development-versionon gRPC). Version1may omit it; later versions send it. A server rejects a version it does not support before decoding, with HTTP400orINVALID_ARGUMENT, and the client drops the data without retrying.profile.frame.typeuses a well-known value whenever one applies.nativecovers C, C++, Go and Rust frames, but a more precise value such asgoorrustwins when the profiler can tell.pprof.scope.default_sample_typeandpprof.scope.sample_type_orderexist so a profile converts back to pprof without loss. When present they are scope attributes, not profile or sample ones.
Wire format
Profiles are a signal of their own, so what this domain emits is defined by a .proto package, not by spans or metrics in the registry.
- OTLP/HTTP path
- /v1development/profiles
- gRPC method
- ProfilesService/Export
- Package
- opentelemetry.proto.profiles.v1development
Compatibility by release
Last changed incompatibly in v1.10.0. 6 of the 8 tracked releases removed, renumbered or retyped fields. The binary format keys on field numbers, so a sender and a receiver built against different releases do not fail: they decode the wrong fields.
- v1.11.129 Sept 2026CompatibleNo change to these packages.
- v1.11.021 Jul 2026CompatibleNo change to these packages.
- v1.10.09 Mar 20263 incompatible3 fields renumbered
- v1.9.031 Oct 202510 incompatible5 fields renumbered · 2 fields removed · 2 fields renamed · 1 definition removed
- v1.8.02 Sept 202531 incompatible12 fields renumbered · 8 fields removed · 5 fields renamed · 3 cardinality changes · 2 fields retyped · 1 definition removed
- v1.7.021 May 20257 incompatible6 fields removed · 1 field renamed
- v1.6.029 Apr 202519 incompatible11 fields renumbered · 7 fields removed · 1 field renamed
- v1.5.017 Dec 20242 incompatible1 definition removed · 1 field removed
profiles/v1development/profiles
- Function
Describes a function, including its human-readable name, system name, source file, and starting line number in the source.
1 name_strindex2 system_name_strindex3 filename_strindex4 start_line
- KeyValueAndUnit
A custom 'dictionary native' style of encoding attributes which is more convenient for profiles than opentelemetry.proto.common.v1.KeyValue Specifically, uses the ProfilesDictionary.string_table for keys and allows optional unit information.
1 key_strindex2 value3 unit_strindex
- Line
Details a specific line in a source code, linked to a function.
1 function_index2 line3 column
- Link
A pointer from a profile Sample to a trace Span.
1 trace_id2 span_id
- Location
Contains function and line table debug information for a single frame.
1 mapping_index2 address3 lines4 attribute_indices
- Mapping
Describes the mapping of a binary in memory, including its address range, file offset, and metadata like build ID
1 memory_start2 memory_limit3 file_offset4 filename_strindex5 attribute_indices
- Profile
Represents a complete profile, including sample types, samples, mappings to binaries, stacks, locations, functions, string table, and additional metadata.
1 sample_type2 samples3 time_unix_nano4 duration_nano5 period_type6 period7 profile_id8 dropped_attributes_count9 original_payload_format10 original_payload11 attribute_indices
- ProfilesData
ProfilesData represents the profiles data that can be stored in persistent storage, OR can be embedded by other protocols that transfer OTLP profiles data but do not implement the OTLP protocol.
1 resource_profiles2 dictionary
- ProfilesDictionary
ProfilesDictionary contains all the dictionary tables that are shared across the entire ProfilesData message.
1 mapping_table2 location_table3 function_table4 link_table5 string_table6 attribute_table7 stack_table
- ResourceProfiles
A collection of ScopeProfiles from a Resource.
1 resource2 scope_profiles3 schema_url
- Sample
Each Sample records values encountered in some program context.
1 stack_index2 attribute_indices3 link_index4 values5 timestamps_unix_nano
- ScopeProfiles
A collection of Profiles produced by an InstrumentationScope.
1 scope2 profiles3 schema_url
- Stack
A Stack represents a stack trace as a list of locations (leaf first).
1 location_indices
- ValueType
ValueType describes the type and units of a value.
1 type_strindex2 unit_strindex
collector/profiles/v1development/profiles_service
- ExportProfilesPartialSuccess
1 rejected_profiles2 error_message
- ExportProfilesServiceRequest
1 resource_profiles2 dictionary
- ExportProfilesServiceResponse
1 partial_success
- ProfilesService
Service that can be used to push profiles between one Application instrumented with OpenTelemetry and a collector, or between a collector and a central collector.
Every signal's definitions are under OTLP.
Specification
- Profilesare bound by the profiles specification — 5 requirements across 2 documents, 2 of them MUST or SHALL.
Requirements that bind this signal 5
A message representing a
MappingMUST have at least one of the following process attributes:process.executable.build_id.gnu;process.executable.build_id.go;process.executable.build_id.htlhashCorrelation with other signals: Profiles MUST be linkable to logs, metrics and traces through shared resource context and, where applicable, direct trace/span references.
If possible all the above listed attributes SHOULD be present in a
Mapping.To promote interoperability, it is RECOMMENDED for
process.executable.build_id.htlhashto be present in everyMapping.Span context references: Samples MAY include a
Link(span ID and trace ID), enabling direct linking between a profile sample and the trace/span during which it was captured.
Attributes 12
pprof11 attributes
- pprof.location.is_foldedDevelopmentProvides an indication that multiple symbols map to this location's address, for example due to identical code folding by the linker. In that case the line info
- pprof.mapping.has_filenamesDevelopmentIndicates that there are filenames related to this mapping.
- pprof.mapping.has_functionsDevelopmentIndicates that there are functions related to this mapping.
- pprof.mapping.has_inline_framesDevelopmentIndicates that there are inline frames related to this mapping.
- pprof.mapping.has_line_numbersDevelopmentIndicates that there are line numbers related to this mapping.
- pprof.profile.commentDevelopmentFree-form text associated with the profile. This field should not be used to store any machine-readable information, it is only for human-friendly content.
- pprof.profile.doc_urlDevelopmentDocumentation link for this profile type.
- pprof.profile.drop_framesDevelopmentFrames with Function.function_name fully matching the regular expression will be dropped from the samples, along with their successors.
- pprof.profile.keep_framesDevelopmentFrames with Function.function_name fully matching the regular expression will be kept, even if it matches drop_frames.
- pprof.scope.default_sample_typeDevelopmentRecords the pprof's default_sample_type in the original profile. Not set if the default sample type was missing.
- pprof.scope.sample_type_orderDevelopmentRecords the indexes of the sample types in the original profile.
profile1 attribute
- profile.frame.typeDevelopmentDescribes the interpreter or compiler of a single frame.
Topics are this site's grouping of upstream namespaces, not a structure the OpenTelemetry project publishes. JSON · All domains