Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
efb9eaf
feat: Support configuring custom span counters to aid trace insights
zaquestion Mar 5, 2026
d46a60f
update docker builder to support khan gcp
zaquestion Mar 9, 2026
42f0b8b
detect suitable root span when root is absent
zaquestion Mar 9, 2026
a4dec74
ci(OTEL-125): remove pipeline-team dependabot reviewer (#1794)
MikeGoldsmith Mar 12, 2026
7d8cc35
chore: update codeowners (#1796)
benhanzl Mar 13, 2026
7fe57f6
fix: move span counters to rules, update config meta
zaquestion Mar 13, 2026
903d739
point to the sre-team project when building docker
zaquestion Mar 16, 2026
d5e35cf
fix(root): select the earliest span as the root
zaquestion Mar 16, 2026
66ceb61
feat: add capacity/limit companion metrics for queues and memory (#1799)
mterhar Mar 25, 2026
3a683f3
maint(deps): bump the minor-patch group across 1 directory with 21 up…
dependabot[bot] Mar 25, 2026
dab7477
maint: prep for v3.1.2 release (#1800)
VinozzZ Mar 25, 2026
8e92d04
fix: update ko build tooling and fix flaky integration test (#1806)
tdarwin Apr 7, 2026
f2452f2
fix: include AdditionalErrorFields in logs for transmission code (#1807)
VinozzZ Apr 8, 2026
b2aed23
feat: add ReceiveKeyIDs config option for key ID-based authorization …
tdarwin Apr 9, 2026
108bba1
feat: add OTelMetrics.AdditionalAttributes config option (#1804)
tdarwin Apr 9, 2026
afe6f36
feat: add granular event metrics for RaaS usage tracking (#1805)
tdarwin Apr 9, 2026
a3188ed
maint(deps): bump go.opentelemetry.io/otel/sdk from 1.42.0 to 1.43.0 …
dependabot[bot] Apr 10, 2026
3f4dbef
maint(deps): bump the minor-patch group across 1 directory with 12 up…
dependabot[bot] Apr 10, 2026
ca94738
maint: prepare for release v3.2.0 (#1813)
VinozzZ Apr 13, 2026
cc93b75
maint(deps): bump the minor-patch group with 8 updates (#1814)
dependabot[bot] May 4, 2026
280ab2b
maint: update honeycombio/husky to v0.43.1 (#1816)
VinozzZ May 4, 2026
a1e0304
maint: prepare for release v3.2.1 (#1817)
VinozzZ May 5, 2026
145db42
fix: validator exits non-zero on YAML parse errors in rules (#1820)
VinozzZ May 13, 2026
662b1fc
maint: remove proto/otlp fork reference (#1822)
VinozzZ May 14, 2026
408a376
fix: increment send_errors for network errors from request (#1823)
VinozzZ May 18, 2026
4abf6a4
fix: make sure FieldList is sorted before use it as dynsamplerKey (#1…
VinozzZ May 22, 2026
6d4e145
fix: overcounting dynsampler event_count and request_count (#1826)
VinozzZ May 22, 2026
0258f7d
Merge tag 'v3.2.1' into khan
zaquestion May 22, 2026
1397f37
fix(TestDebugAllRules): add omit empty to span counters to fix test
zaquestion May 22, 2026
9793099
fix: copy fields slice before sorting in newTraceKey (#1827)
VinozzZ May 26, 2026
64a874a
maint: prepare release v3.2.2 (#1828)
VinozzZ May 26, 2026
4f0994c
test: use testcontainers for redis tests
zaquestion Jun 1, 2026
96b1034
feat(SpanCounter): add ScopeConditions for per-anchor subtree counts
zaquestion Jun 1, 2026
5db9c33
feat(SpanCounter): add RootKey to separate per-anchor and trace-wide …
zaquestion Jun 1, 2026
5486fd9
Merge tag 'v3.2.2' into khan
zaquestion Jun 1, 2026
ce050be
feat(SpanCounter): drop EmitTotalOnRoot; use RootKey to opt into root…
zaquestion Jun 1, 2026
0c68b6c
fix(SpanCounter): route ScopeConditions through Conditions group at v…
zaquestion Jun 1, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 15 additions & 12 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,21 +65,24 @@ commands:

jobs:
test:
docker:
- image: cimg/go:1.25
- image: redis:6.2
# Use the machine executor so testcontainers-go has a local Docker daemon
# to drive — the redis testcontainer needs to be reachable from the test
# process via a host port, which the docker executor cannot provide.
machine:
image: ubuntu-2404:current
resource_class: xlarge
steps:
- checkout
- restore_cache:
keys:
- v1-dockerize-{{ checksum "Makefile" }}
- v1-dockerize-
- run: make dockerize
- save_cache:
key: v1-dockerize-{{ checksum "Makefile" }}
paths:
- dockerize.tar.gz
- run:
name: Install Go and gotestsum
command: |
GO_VERSION=1.25.3
curl -fsSL "https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz" -o /tmp/go.tar.gz
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf /tmp/go.tar.gz
echo 'export PATH=/usr/local/go/bin:$HOME/go/bin:$PATH' >> "$BASH_ENV"
export PATH=/usr/local/go/bin:$HOME/go/bin:$PATH
go install gotest.tools/gotestsum@latest
- restore_cache:
keys:
- v3-go-mod-{{ checksum "go.sum" }}
Expand Down
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @honeycombio/pipeline-team
* @honeycombio/agentic-observability
2 changes: 0 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ updates:
interval: "monthly"
labels:
- "type: dependencies"
reviewers:
- "honeycombio/pipeline-team"
groups:
minor-patch:
update-types:
Expand Down
53 changes: 53 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,58 @@
# Refinery Changelog

## 3.2.2 2026-05-26

### 🐛 Fixes

- fix: validator exits non-zero on YAML parse errors in rules by @VinozzZ in https://github.com/honeycombio/refinery/pull/1820
- fix: increment send_errors for network errors from request by @VinozzZ in https://github.com/honeycombio/refinery/pull/1823
- fix: make sure FieldList is sorted before use it as dynsamplerKey by @VinozzZ in https://github.com/honeycombio/refinery/pull/1825
- fix: overcounting dynsampler event_count and request_count by @VinozzZ in https://github.com/honeycombio/refinery/pull/1826
- fix: copy fields slice before sorting in newTraceKey by @VinozzZ in https://github.com/honeycombio/refinery/pull/1827

### 🛠 Maintenance

- maint: remove proto/otlp fork reference by @VinozzZ in https://github.com/honeycombio/refinery/pull/1822

## 3.2.1 2026-05-04

This release fixes a bug in OTLP JSON ingestion where `traceId` and `spanId` fields were incorrectly treated as base64-encoded. The OTLP JSON spec explicitly requires these fields to be hex-encoded strings, and clients sending data over OTLP HTTP/JSON would receive corrupted ID values as a result.

### 🛠 Maintenance

- maint: update honeycombio/husky to v0.43.1 by @VinozzZ in https://github.com/honeycombio/refinery/pull/1816
- maint(deps): bump the minor-patch group with 8 updates by @dependabot in https://github.com/honeycombio/refinery/pull/1814

## 3.2.0 2026-04-13

### 💡 Enhancements

- feat: add ReceiveKeyIDs config option for key ID-based authorization by @tdarwin in https://github.com/honeycombio/refinery/pull/1803
- feat: add OTelMetrics.AdditionalAttributes config option by @tdarwin in https://github.com/honeycombio/refinery/pull/1804
- feat: add granular event metrics by @tdarwin in https://github.com/honeycombio/refinery/pull/1805

### 🐛 Fixes

- fix: include AdditionalErrorFields in logs for transmission code by @VinozzZ in https://github.com/honeycombio/refinery/pull/1807

### 🛠 Maintenance

- fix: update ko build tooling and fix flaky integration test by @tdarwin in https://github.com/honeycombio/refinery/pull/1806
- maint(deps): bump go.opentelemetry.io/otel/sdk from 1.42.0 to 1.43.0 by @dependabot in https://github.com/honeycombio/refinery/pull/1810
- maint(deps): bump the minor-patch group across 1 directory with 12 updates by @dependabot in https://github.com/honeycombio/refinery/pull/1812

## 3.1.2 2026-03-25

This release addresses security vulnerabilities CVE-2026-27139, CVE-2026-27142, and CVE-2026-25679.

### Features

- feat: add capacity/limit companion metrics for queues and memory by @mterhar in https://github.com/honeycombio/refinery/pull/1799

### Maintenance

- maint(deps): bump the minor-patch group across 1 directory with 21 updates by @dependabot in https://github.com/honeycombio/refinery/pull/1795

## 3.1.1 2026-02-25

### Features
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: go-tests

on: [push]
on:
pull_request:
branches: [ main ]

env:
TEST_RESULTS: /tmp/test-results
Expand All @@ -11,16 +13,16 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [ 1.15.3, 1.19 ]
go-version: ['stable', 'oldstable']

steps:
- name: Setup go
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version: ${{ matrix.go-version }}

- name: Checkout code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Create test directory
run: |
Expand All @@ -30,7 +32,7 @@ jobs:
run: go mod download

- name: Cache / restore go modules
uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
with:
path: |
~/go/pkg/mod
Expand All @@ -50,7 +52,7 @@ jobs:
fi

- name: Run golangci-lint
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20

# Install gotestsum with go get for 1.15.3; otherwise default to go install
- name: Install gotestsum
Expand All @@ -71,13 +73,13 @@ jobs:

# Save coverage report parts
- name: Upload and save artifacts
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f
with:
name: Test Results-${{matrix.go-version}}
path: ${{ env.TEST_RESULTS }}

- name: Upload coverage report
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f
with:
path: coverage.out
name: Coverage-report-${{matrix.go-version}}
Expand Down
38 changes: 38 additions & 0 deletions LICENSES/github.com/hashicorp/go-version/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,41 @@
# 1.9.0 (Mar 30, 2026)

ENHANCEMENTS:

Support parsing versions with custom prefixes via opt-in option in https://github.com/hashicorp/go-version/pull/79

INTERNAL:

- Bump the github-actions-backward-compatible group across 1 directory with 2 updates in https://github.com/hashicorp/go-version/pull/179
- Bump the github-actions-breaking group with 4 updates in https://github.com/hashicorp/go-version/pull/180
- Bump the github-actions-backward-compatible group with 3 updates in https://github.com/hashicorp/go-version/pull/182
- Update GitHub Actions to trigger on pull requests and update go version in https://github.com/hashicorp/go-version/pull/185
- Bump actions/upload-artifact from 6.0.0 to 7.0.0 in the github-actions-breaking group across 1 directory in https://github.com/hashicorp/go-version/pull/183
- Bump the github-actions-backward-compatible group across 1 directory with 2 updates in https://github.com/hashicorp/go-version/pull/186

# 1.8.0 (Nov 28, 2025)

ENHANCEMENTS:

- Add benchmark test for version.String() in https://github.com/hashicorp/go-version/pull/159
- Bytes implementation in https://github.com/hashicorp/go-version/pull/161

INTERNAL:

- Add CODEOWNERS file in .github/CODEOWNERS in https://github.com/hashicorp/go-version/pull/145
- Linting in https://github.com/hashicorp/go-version/pull/151
- Correct typos in comments in https://github.com/hashicorp/go-version/pull/134
- Migrate GitHub Actions updates from TSCCR to Dependabot in https://github.com/hashicorp/go-version/pull/155
- Bump the github-actions-backward-compatible group with 2 updates in https://github.com/hashicorp/go-version/pull/157
- Update doc reference in README in https://github.com/hashicorp/go-version/pull/135
- Bump the github-actions-breaking group with 3 updates in https://github.com/hashicorp/go-version/pull/156
- [Compliance] - PR Template Changes Required in https://github.com/hashicorp/go-version/pull/158
- Bump actions/cache from 4.2.3 to 4.2.4 in the github-actions-backward-compatible group in https://github.com/hashicorp/go-version/pull/167
- Bump actions/checkout from 4.2.2 to 5.0.0 in the github-actions-breaking group in https://github.com/hashicorp/go-version/pull/166
- Bump the github-actions-breaking group across 1 directory with 2 updates in https://github.com/hashicorp/go-version/pull/171
- [IND-4226] [COMPLIANCE] Update Copyright Headers in https://github.com/hashicorp/go-version/pull/172
- drop init() in https://github.com/hashicorp/go-version/pull/175

# 1.7.0 (May 24, 2024)

ENHANCEMENTS:
Expand Down
26 changes: 26 additions & 0 deletions LICENSES/github.com/hashicorp/go-version/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,32 @@ if v1.LessThan(v2) {
}
```

#### Version Parsing and Comparison with Prefixes

The library also supports parsing versions with a custom prefix.
Using the `WithPrefix` option, you can specify a prefix to strip
before parsing the version.

Use `WithPrefix` when your input strings carry a known release prefix such as
`deployment-`, `controller-`, etc.

After parsing, the prefix is not part of the canonical version value. This
means the regular comparison methods such as `Compare`, `LessThan`, `Equal`,
and `GreaterThan` compare only the stripped version. If you compare versions
from different prefixes with these methods, the prefixes are ignored. If you
need to reject cross-prefix comparisons, inspect the parsed prefixes before
comparing the versions.

```go
v1, _ := version.NewVersion("deployment-v1.2.3-beta+metadata", version.WithPrefix("deployment-"))
v2, _ := version.NewVersion("deployment-v1.2.4", version.WithPrefix("deployment-"))

if v1.LessThan(v2) {
fmt.Printf("%s (%s) is less than %s (%s)\n", v1, v1.Original(), v2, v2.Original())
// Outputs: 1.2.3-beta+metadata (deployment-v1.2.3-beta+metadata) is less than 1.2.4 (deployment-v1.2.4)
}
```

#### Version Constraints

```go
Expand Down
54 changes: 50 additions & 4 deletions LICENSES/github.com/hashicorp/go-version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,60 @@ const (
`?`
)

// Optional options for NewVersion function.
type options struct {
// If set, this prefix will be trimmed from the version string before parsing.
prefix string
}

// Option is a functional option for NewVersion.
type Option func(*options)

// WithPrefix is a functional option that sets a prefix to be removed from the
// version string before parsing.
func WithPrefix(prefix string) Option {
return func(o *options) {
o.prefix = prefix
}
}

// Version represents a single version.
type Version struct {
metadata string
pre string
segments []int64
si int
original string
prefix string
}

// NewVersion parses the given version and returns a new
// Version.
func NewVersion(v string) (*Version, error) {
return newVersion(v, getVersionRegexp())
// NewVersion parses the given version and returns a new Version.
//
// Optional parsing behavior can be enabled with Option values such as
// WithPrefix, which validates and strips an expected prefix before parsing.
func NewVersion(v string, opts ...Option) (*Version, error) {
options := &options{}
for _, opt := range opts {
if opt != nil {
opt(options)
}
}

vToParse := v
if options.prefix != "" {
if !strings.HasPrefix(v, options.prefix) {
return nil, fmt.Errorf("version %q does not have prefix %q", v, options.prefix)
}
vToParse = strings.TrimPrefix(v, options.prefix)
}

ver, err := newVersion(vToParse, getVersionRegexp())
if err != nil {
return nil, err
}
ver.prefix = options.prefix
ver.original = v
return ver, nil
}

// NewSemver parses the given version and returns a new
Expand Down Expand Up @@ -424,6 +465,11 @@ func (v *Version) Original() string {
return v.original
}

// Prefix returns the explicit prefix used with WithPrefix, if any.
func (v *Version) Prefix() string {
return v.prefix
}

// UnmarshalText implements encoding.TextUnmarshaler interface.
func (v *Version) UnmarshalText(b []byte) error {
temp, err := NewVersion(string(b))
Expand Down
Loading