Skip to content

[exporter/elasticsearch] Create high-quality frameID if buildID is missing#41375

Merged
atoulme merged 5 commits into
open-telemetry:mainfrom
rockdaboot:es-profiling-fix-frameid
Jul 18, 2025
Merged

[exporter/elasticsearch] Create high-quality frameID if buildID is missing#41375
atoulme merged 5 commits into
open-telemetry:mainfrom
rockdaboot:es-profiling-fix-frameid

Conversation

@rockdaboot
Copy link
Copy Markdown
Contributor

Description

This PR fixes an issue where a missing buildID results in low-quality frame IDs, that make collisions (same frame ID for different frames) very likely.

The change generates high-quality frame IDs from the Line entries of the Location (file name, function name, line number and column).

@rockdaboot rockdaboot force-pushed the es-profiling-fix-frameid branch from 078853a to c7ad8a0 Compare July 17, 2025 17:26
@rockdaboot rockdaboot marked this pull request as ready for review July 17, 2025 17:26
@rockdaboot rockdaboot requested a review from a team as a code owner July 17, 2025 17:26
@rockdaboot rockdaboot requested a review from bogdandrutu July 17, 2025 17:26
@rockdaboot rockdaboot changed the title [exporter/elasticsearch] Create frameID even if buildID is missing [exporter/elasticsearch] Create high-quality frameID if buildID is missing Jul 17, 2025
Copy link
Copy Markdown
Member

@christos68k christos68k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

rockdaboot and others added 3 commits July 18, 2025 09:41
Co-authored-by: Christos Kalkanis <christos.kalkanis@elastic.co>
Co-authored-by: Florian Lehner <florianl@users.noreply.github.com>
florianl added a commit to elastic/devfiler that referenced this pull request Jul 18, 2025
Follow the idea implemented with open-telemetry/opentelemetry-collector-contrib#41375 for interpreted frames without build_id.

Fixes #33

Signed-off-by: Florian Lehner <florian.lehner@elastic.co>
florianl added a commit to elastic/devfiler that referenced this pull request Jul 18, 2025
Follow the idea implemented with open-telemetry/opentelemetry-collector-contrib#41375 for interpreted frames without build_id.

Fixes #33

Signed-off-by: Florian Lehner <florian.lehner@elastic.co>
florianl added a commit to elastic/devfiler that referenced this pull request Jul 18, 2025
Follow the idea implemented with open-telemetry/opentelemetry-collector-contrib#41375 for interpreted frames without build_id.

Fixes #33

Signed-off-by: Florian Lehner <florian.lehner@elastic.co>
florianl added a commit to elastic/devfiler that referenced this pull request Jul 18, 2025
Follow the idea implemented with open-telemetry/opentelemetry-collector-contrib#41375 for interpreted frames without build_id.

Fixes #33

Signed-off-by: Florian Lehner <florian.lehner@elastic.co>
@atoulme atoulme merged commit c01558c into open-telemetry:main Jul 18, 2025
177 checks passed
@github-actions github-actions Bot added this to the next release milestone Jul 18, 2025
Dylan-M pushed a commit to Dylan-M/opentelemetry-collector-contrib that referenced this pull request Aug 5, 2025
…ssing (open-telemetry#41375)

#### Description
This PR fixes an issue where a missing buildID results in low-quality
frame IDs, that make collisions (same frame ID for different frames)
very likely.

The change generates high-quality frame IDs from the Line entries of the
Location (file name, function name, line number and column).

---------

Co-authored-by: Christos Kalkanis <christos.kalkanis@elastic.co>
Co-authored-by: Florian Lehner <florianl@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants