Skip to content

Commit 0573b15

Browse files
Frapschenedmocosta
andauthored
Add XXH3 Converter function to converts a value to a XXH3 hash/digest (open-telemetry#43032)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description <!-- Issue number (e.g. #1234) or full URL to issue, if applicable. --> #### Link to tracking issue Fixes open-telemetry#42792 <!--Describe what testing was performed and which tests were added.--> #### Testing <!--Describe the documentation added.--> #### Documentation <!--Please delete paragraphs that you did not use before submitting.--> --------- Co-authored-by: Edmo Vamerlatti Costa <[email protected]>
1 parent b0fa177 commit 0573b15

File tree

38 files changed

+308
-0
lines changed

38 files changed

+308
-0
lines changed

.chloggen/add-xxh3-ottl-func.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Use this changelog template to create an entry for release notes.
2+
3+
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
4+
change_type: enhancement
5+
6+
# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver)
7+
component: pkg/ottl
8+
9+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
10+
note: Add XXH3 Converter function to converts a `value` to a XXH3 hash/digest
11+
12+
# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists.
13+
issues: [42792]
14+
15+
# (Optional) One or more lines of additional information to render under the primary note.
16+
# These lines will be padded with 2 spaces and then inserted directly into the document.
17+
# Use pipe (|) for multiline entries.
18+
subtext:
19+
20+
# If your change doesn't affect end users or the exported elements of any package,
21+
# you should instead start your pull request title with [chore] or use the "Skip Changelog" label.
22+
# Optional: The change log or logs in which this entry should be included.
23+
# e.g. '[user]' or '[user, api]'
24+
# Include 'user' if the change is relevant to end users.
25+
# Include 'api' if there is a change to a library API.
26+
# Default: '[user]'
27+
change_logs: [user]

connector/countconnector/go.mod

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ require (
4545
github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect
4646
github.com/iancoleman/strcase v0.3.0 // indirect
4747
github.com/json-iterator/go v1.1.12 // indirect
48+
github.com/klauspost/cpuid/v2 v2.0.9 // indirect
4849
github.com/knadh/koanf/maps v0.1.2 // indirect
4950
github.com/knadh/koanf/providers/confmap v1.0.0 // indirect
5051
github.com/knadh/koanf/v2 v2.3.0 // indirect
@@ -57,6 +58,7 @@ require (
5758
github.com/pmezard/go-difflib v1.0.0 // indirect
5859
github.com/twmb/murmur3 v1.1.8 // indirect
5960
github.com/ua-parser/uap-go v0.0.0-20240611065828-3a4781585db6 // indirect
61+
github.com/zeebo/xxh3 v1.0.2 // indirect
6062
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
6163
go.opentelemetry.io/collector/consumer/xconsumer v0.137.1-0.20251013162618-a96eab114ea4 // indirect
6264
go.opentelemetry.io/collector/featuregate v1.43.1-0.20251013162618-a96eab114ea4 // indirect

connector/countconnector/go.sum

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

connector/datadogconnector/go.mod

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ require (
207207
github.com/josharian/intern v1.0.0 // indirect
208208
github.com/json-iterator/go v1.1.12 // indirect
209209
github.com/klauspost/compress v1.18.0 // indirect
210+
github.com/klauspost/cpuid/v2 v2.0.9 // indirect
210211
github.com/knadh/koanf/maps v0.1.2 // indirect
211212
github.com/knadh/koanf/providers/confmap v1.0.0 // indirect
212213
github.com/knadh/koanf/v2 v2.3.0 // indirect
@@ -266,6 +267,7 @@ require (
266267
github.com/ua-parser/uap-go v0.0.0-20240611065828-3a4781585db6 // indirect
267268
github.com/x448/float16 v0.8.4 // indirect
268269
github.com/yusufpapurcu/wmi v1.2.4 // indirect
270+
github.com/zeebo/xxh3 v1.0.2 // indirect
269271
go.opentelemetry.io/auto/sdk v1.2.1 // indirect
270272
go.opentelemetry.io/collector v0.137.1-0.20251013162618-a96eab114ea4 // indirect
271273
go.opentelemetry.io/collector/client v1.43.1-0.20251013162618-a96eab114ea4 // indirect

connector/datadogconnector/go.sum

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

connector/routingconnector/go.mod

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ require (
4242
github.com/hashicorp/golang-lru v0.5.4 // indirect
4343
github.com/iancoleman/strcase v0.3.0 // indirect
4444
github.com/json-iterator/go v1.1.12 // indirect
45+
github.com/klauspost/cpuid/v2 v2.0.9 // indirect
4546
github.com/knadh/koanf/maps v0.1.2 // indirect
4647
github.com/knadh/koanf/providers/confmap v1.0.0 // indirect
4748
github.com/knadh/koanf/v2 v2.3.0 // indirect
@@ -55,6 +56,7 @@ require (
5556
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
5657
github.com/twmb/murmur3 v1.1.8 // indirect
5758
github.com/ua-parser/uap-go v0.0.0-20240611065828-3a4781585db6 // indirect
59+
github.com/zeebo/xxh3 v1.0.2 // indirect
5860
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
5961
go.opentelemetry.io/collector/connector/xconnector v0.137.1-0.20251013162618-a96eab114ea4 // indirect
6062
go.opentelemetry.io/collector/consumer/xconsumer v0.137.1-0.20251013162618-a96eab114ea4 // indirect

connector/routingconnector/go.sum

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

connector/signaltometricsconnector/go.mod

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ require (
4949
github.com/hashicorp/golang-lru v0.5.4 // indirect
5050
github.com/iancoleman/strcase v0.3.0 // indirect
5151
github.com/json-iterator/go v1.1.12 // indirect
52+
github.com/klauspost/cpuid/v2 v2.0.9 // indirect
5253
github.com/knadh/koanf/maps v0.1.2 // indirect
5354
github.com/knadh/koanf/providers/confmap v1.0.0 // indirect
5455
github.com/knadh/koanf/v2 v2.3.0 // indirect
@@ -61,6 +62,7 @@ require (
6162
github.com/pmezard/go-difflib v1.0.0 // indirect
6263
github.com/twmb/murmur3 v1.1.8 // indirect
6364
github.com/ua-parser/uap-go v0.0.0-20240611065828-3a4781585db6 // indirect
65+
github.com/zeebo/xxh3 v1.0.2 // indirect
6466
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
6567
go.opentelemetry.io/collector/consumer/xconsumer v0.137.1-0.20251013162618-a96eab114ea4 // indirect
6668
go.opentelemetry.io/collector/featuregate v1.43.1-0.20251013162618-a96eab114ea4 // indirect

connector/signaltometricsconnector/go.sum

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

connector/sumconnector/go.mod

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ require (
4444
github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect
4545
github.com/iancoleman/strcase v0.3.0 // indirect
4646
github.com/json-iterator/go v1.1.12 // indirect
47+
github.com/klauspost/cpuid/v2 v2.0.9 // indirect
4748
github.com/knadh/koanf/maps v0.1.2 // indirect
4849
github.com/knadh/koanf/providers/confmap v1.0.0 // indirect
4950
github.com/knadh/koanf/v2 v2.3.0 // indirect
@@ -56,6 +57,7 @@ require (
5657
github.com/pmezard/go-difflib v1.0.0 // indirect
5758
github.com/twmb/murmur3 v1.1.8 // indirect
5859
github.com/ua-parser/uap-go v0.0.0-20240611065828-3a4781585db6 // indirect
60+
github.com/zeebo/xxh3 v1.0.2 // indirect
5961
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
6062
go.opentelemetry.io/collector/connector/xconnector v0.137.1-0.20251013162618-a96eab114ea4 // indirect
6163
go.opentelemetry.io/collector/consumer/xconsumer v0.137.1-0.20251013162618-a96eab114ea4 // indirect

0 commit comments

Comments
 (0)