Skip to content
semconv.com
↑↓ move↵ openUse with your agent →

Profiling

as of v1.45.0, OTLP v1.11.1

The 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.

pprof 11profile 1

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 ProfilesDictionary starts with its zero value ("" in string_table, Location{} in location_table), so an index of 0 means not set. For link_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 values or timestamps_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.

  • A sample's identity is {stack_index, set_of(attribute_indices), link_index}. Samples that share it are combined by appending to values and timestamps_unix_nano, and every sample in a profile uses the same shape.

  • attribute_table may hold several entries with the same key, but the attribute_indices of 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 KeyValue in a profiles request can carry key_strindex in place of key, and an AnyValue string_value_strindex in place of the string. Never set both. A receiver that reads only the inline fields sees empty keys.

  • original_payload and original_payload_format are set together or both left unset. The known formats are pprof, jfr and linux_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-version on gRPC). Version 1 may omit it; later versions send it. A server rejects a version it does not support before decoding, with HTTP 400 or INVALID_ARGUMENT, and the client drops the data without retrying.

  • profile.frame.type uses a well-known value whenever one applies. native covers C, C++, Go and Rust frames, but a more precise value such as go or rust wins when the profiler can tell.

  • pprof.scope.default_sample_type and pprof.scope.sample_type_order exist 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 2026
    CompatibleNo change to these packages.
  • v1.11.021 Jul 2026
    CompatibleNo change to these packages.
  • v1.10.09 Mar 2026
    3 incompatible3 fields renumbered
  • v1.9.031 Oct 2025
    10 incompatible5 fields renumbered · 2 fields removed · 2 fields renamed · 1 definition removed
  • v1.8.02 Sept 2025
    31 incompatible12 fields renumbered · 8 fields removed · 5 fields renamed · 3 cardinality changes · 2 fields retyped · 1 definition removed
  • v1.7.021 May 2025
    7 incompatible6 fields removed · 1 field renamed
  • v1.6.029 Apr 2025
    19 incompatible11 fields renumbered · 7 fields removed · 1 field renamed
  • v1.5.017 Dec 2024
    2 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

  • MUSTAttributesAlpha

    A message representing a Mapping MUST have at least one of the following process attributes: process.executable.build_id.gnu; process.executable.build_id.go; process.executable.build_id.htlhash

  • MUSTDesign goalsAlpha

    Correlation with other signals: Profiles MUST be linkable to logs, metrics and traces through shared resource context and, where applicable, direct trace/span references.

  • SHOULDAttributesAlpha

    If possible all the above listed attributes SHOULD be present in a Mapping.

  • RECOMMENDEDAttributesAlpha

    To promote interoperability, it is RECOMMENDED for process.executable.build_id.htlhash to be present in every Mapping.

  • MAYData FormatAlpha

    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

profile1 attribute

Topics are this site's grouping of upstream namespaces, not a structure the OpenTelemetry project publishes. JSON · All domains