Skip to content

pdata/generate: Simplify deduplication logic / add Location deduplication#550

Merged
christos68k merged 6 commits intomainfrom
ck/dedup
Jun 27, 2025
Merged

pdata/generate: Simplify deduplication logic / add Location deduplication#550
christos68k merged 6 commits intomainfrom
ck/dedup

Conversation

@christos68k
Copy link
Copy Markdown
Member

@christos68k christos68k commented Jun 26, 2025

Summary

  • Fixed bug in tests
  • Better error handling (avoids dictionary corruption)
  • Added pdata.OrderedSet
  • Various cleanups and simplifications

TODO: Deduplicate Locations DONE

Also see:

@christos68k christos68k requested review from a team as code owners June 26, 2025 04:11
@christos68k christos68k self-assigned this Jun 26, 2025
@christos68k christos68k linked an issue Jun 26, 2025 that may be closed by this pull request
@christos68k christos68k marked this pull request as draft June 26, 2025 04:12
Comment thread libpf/generics.go Outdated
Comment thread libpf/generics.go Outdated
Comment thread reporter/internal/pdata/generate.go Outdated
Comment thread reporter/internal/pdata/generate.go Outdated
Comment thread reporter/internal/pdata/generate.go
Comment thread reporter/internal/pdata/generate.go
Comment thread libpf/generics.go Outdated
@christos68k christos68k changed the title pdata/generate: Simplify deduplication logic pdata/generate: Simplify deduplication logic / add Location deduplication Jun 26, 2025
@christos68k christos68k marked this pull request as ready for review June 26, 2025 23:01
@christos68k christos68k linked an issue Jun 26, 2025 that may be closed by this pull request
Comment thread reporter/internal/pdata/generate_test.go Outdated
Copy link
Copy Markdown
Member

@florianl florianl left a comment

Choose a reason for hiding this comment

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

Tested with elastic/devfiler#27

Copy link
Copy Markdown
Contributor

@rockdaboot rockdaboot left a comment

Choose a reason for hiding this comment

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

Tested with OTEL collector + ES 9.2.0-SNAPSHOT (had to fix two serious issues and add one missing feature in/for elasticsearchexporter) 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

setProfile() only works with one Profile per message reporter: implement Location deduplication

3 participants