Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5d442b2d09 | ||
|
|
8f0c2473a8 | ||
|
|
d035ff1b6c | ||
|
|
165883de2b |
No files matched your search
@@ -23,7 +23,7 @@ repos:
|
|||||||
- id: go-imports
|
- id: go-imports
|
||||||
args:
|
args:
|
||||||
- -local
|
- -local
|
||||||
- gitea.unbound.se/shiny/otelsetup
|
- git.unbound.se/shiny/otelsetup
|
||||||
- repo: https://github.com/lietu/go-pre-commit
|
- repo: https://github.com/lietu/go-pre-commit
|
||||||
rev: v1.0.0
|
rev: v1.0.0
|
||||||
hooks:
|
hooks:
|
||||||
|
|||||||
@@ -2,6 +2,20 @@
|
|||||||
|
|
||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
|
## [0.8.0] - 2026-10-17
|
||||||
|
|
||||||
|
### 🚀 Features
|
||||||
|
|
||||||
|
- Move module path to git.unbound.se (#212)
|
||||||
|
|
||||||
|
### 🐛 Bug Fixes
|
||||||
|
|
||||||
|
- *(deps)* Update module github.com/vektah/gqlparser/v2 to v2.5.62 (#209)
|
||||||
|
|
||||||
|
### ⚙️ Miscellaneous Tasks
|
||||||
|
|
||||||
|
- *(renovate)* Drop the OpenTelemetry group, now in the central config (#208)
|
||||||
|
|
||||||
## [0.7.0] - 2026-10-16
|
## [0.7.0] - 2026-10-16
|
||||||
|
|
||||||
### 🚀 Features
|
### 🚀 Features
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ Provides standardized OpenTelemetry configuration for tracing, metrics, and logg
|
|||||||
### Usage
|
### Usage
|
||||||
|
|
||||||
```go
|
```go
|
||||||
import "gitea.unbound.se/shiny/otelsetup"
|
import "git.unbound.se/shiny/otelsetup"
|
||||||
|
|
||||||
// Bootstrap OpenTelemetry SDK
|
// Bootstrap OpenTelemetry SDK
|
||||||
shutdown, err := otelsetup.SetupOTelSDK(ctx, enabled, serviceName, buildVersion, environment)
|
shutdown, err := otelsetup.SetupOTelSDK(ctx, enabled, serviceName, buildVersion, environment)
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
module gitea.unbound.se/shiny/otelsetup
|
module git.unbound.se/shiny/otelsetup
|
||||||
|
|
||||||
go 1.26.0
|
go 1.26.0
|
||||||
|
|
||||||
@@ -6,7 +6,7 @@ require (
|
|||||||
codeberg.org/eventsourced/eventsourced v1.24.0
|
codeberg.org/eventsourced/eventsourced v1.24.0
|
||||||
codeberg.org/eventsourced/pg/v2 v2.3.0
|
codeberg.org/eventsourced/pg/v2 v2.3.0
|
||||||
github.com/99designs/gqlgen v0.17.95
|
github.com/99designs/gqlgen v0.17.95
|
||||||
github.com/vektah/gqlparser/v2 v2.5.37
|
github.com/vektah/gqlparser/v2 v2.5.62
|
||||||
go.opentelemetry.io/otel v1.47.0
|
go.opentelemetry.io/otel v1.47.0
|
||||||
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp v1.47.0
|
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp v1.47.0
|
||||||
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.47.0
|
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.47.0
|
||||||
|
|||||||
@@ -58,8 +58,8 @@ github.com/sosodev/duration v1.4.0 h1:35ed0KiVFriGHHzZZJaZLgmTEEICIyt8Sx0RQfj9Ij
|
|||||||
github.com/sosodev/duration v1.4.0/go.mod h1:RQIBBX0+fMLc/D9+Jb/fwvVmo0eZvDDEERAikUR6SDg=
|
github.com/sosodev/duration v1.4.0/go.mod h1:RQIBBX0+fMLc/D9+Jb/fwvVmo0eZvDDEERAikUR6SDg=
|
||||||
github.com/stretchr/testify v1.12.1 h1:EuwCh5fleGS7H32xRwO3wRGT7DxrDhLAT6FF8MpWDWE=
|
github.com/stretchr/testify v1.12.1 h1:EuwCh5fleGS7H32xRwO3wRGT7DxrDhLAT6FF8MpWDWE=
|
||||||
github.com/stretchr/testify v1.12.1/go.mod h1:MDEgiDPPsNp5cuIrHPPCyornHKgEVbtFUmoNlxoYthg=
|
github.com/stretchr/testify v1.12.1/go.mod h1:MDEgiDPPsNp5cuIrHPPCyornHKgEVbtFUmoNlxoYthg=
|
||||||
github.com/vektah/gqlparser/v2 v2.5.37 h1:jbb1Ilv+xBklV6653tKb4oVUupPNTLb5LmrnBKVI12Y=
|
github.com/vektah/gqlparser/v2 v2.5.62 h1:GJP/emj1wIWKs0U3SHcAgzknWgylTqQ1qH2gNL+wSWc=
|
||||||
github.com/vektah/gqlparser/v2 v2.5.37/go.mod h1:9O4Ox6Ngd3Y12bMD3w6i3CRQXh8W1oC1q0m6olCymDM=
|
github.com/vektah/gqlparser/v2 v2.5.62/go.mod h1:JNK+plRwKdXLsF/qPFPe5tE0z4s1WeroD9S5LR8um/Q=
|
||||||
go.opentelemetry.io/auto/sdk v1.2.1 h1:jXsnJ4Lmnqd11kwkBV2LgLoFMZKizbCi5fNZ/ipaZ64=
|
go.opentelemetry.io/auto/sdk v1.2.1 h1:jXsnJ4Lmnqd11kwkBV2LgLoFMZKizbCi5fNZ/ipaZ64=
|
||||||
go.opentelemetry.io/auto/sdk v1.2.1/go.mod h1:KRTj+aOaElaLi+wW1kO/DZRXwkF4C5xPbEe3ZiIhN7Y=
|
go.opentelemetry.io/auto/sdk v1.2.1/go.mod h1:KRTj+aOaElaLi+wW1kO/DZRXwkF4C5xPbEe3ZiIhN7Y=
|
||||||
go.opentelemetry.io/otel v1.47.0 h1:j7ALJ/zgkS7Z6aeJW09p8VC9804bC+PpeTfCD4XPnOM=
|
go.opentelemetry.io/otel v1.47.0 h1:j7ALJ/zgkS7Z6aeJW09p8VC9804bC+PpeTfCD4XPnOM=
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ import (
|
|||||||
|
|
||||||
// eventsourcedMeterName is the instrumentation scope for the event-sourcing
|
// eventsourcedMeterName is the instrumentation scope for the event-sourcing
|
||||||
// metrics emitted by the adapter returned from NewEventsourcedMetrics.
|
// metrics emitted by the adapter returned from NewEventsourcedMetrics.
|
||||||
|
// It keeps the old module path on purpose: renaming it breaks queries on otel_scope_name.
|
||||||
const eventsourcedMeterName = "gitea.unbound.se/shiny/otelsetup/eventsourced"
|
const eventsourcedMeterName = "gitea.unbound.se/shiny/otelsetup/eventsourced"
|
||||||
|
|
||||||
// durationBucketsSeconds are explicit histogram boundaries tuned for
|
// durationBucketsSeconds are explicit histogram boundaries tuned for
|
||||||
|
|||||||
@@ -2,15 +2,5 @@
|
|||||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
"extends": [
|
"extends": [
|
||||||
"config:recommended"
|
"config:recommended"
|
||||||
],
|
|
||||||
"packageRules": [
|
|
||||||
{
|
|
||||||
"groupName": "OpenTelemetry",
|
|
||||||
"matchPackageNames": [
|
|
||||||
"go.opentelemetry.io/**",
|
|
||||||
"gitea.unbound.se/shiny/otelsetup",
|
|
||||||
"gitea.unbound.se/shiny/logging"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -10,6 +10,7 @@ import (
|
|||||||
|
|
||||||
// subscriptionMeterName is the instrumentation scope for the cross-service
|
// subscriptionMeterName is the instrumentation scope for the cross-service
|
||||||
// subscription push metrics emitted by SubscriptionMetrics.
|
// subscription push metrics emitted by SubscriptionMetrics.
|
||||||
|
// It keeps the old module path on purpose: renaming it breaks queries on otel_scope_name.
|
||||||
const subscriptionMeterName = "gitea.unbound.se/shiny/otelsetup/subscriptions"
|
const subscriptionMeterName = "gitea.unbound.se/shiny/otelsetup/subscriptions"
|
||||||
|
|
||||||
// SubscriptionMetrics records cross-service subscription push outcomes (the
|
// SubscriptionMetrics records cross-service subscription push outcomes (the
|
||||||
@@ -17,7 +18,7 @@ const subscriptionMeterName = "gitea.unbound.se/shiny/otelsetup/subscriptions"
|
|||||||
// counters.
|
// counters.
|
||||||
//
|
//
|
||||||
// Its method set (Pushed/PushSkipped/Dropped/ChannelFull) satisfies the
|
// Its method set (Pushed/PushSkipped/Dropped/ChannelFull) satisfies the
|
||||||
// Observer interface of gitea.unbound.se/shiny/subscriptions *structurally* —
|
// Observer interface of git.unbound.se/shiny/subscriptions *structurally* —
|
||||||
// otelsetup does not import that library. A service constructs it and passes it
|
// otelsetup does not import that library. A service constructs it and passes it
|
||||||
// to the registry:
|
// to the registry:
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import (
|
|||||||
"go.opentelemetry.io/otel/sdk/metric/metricdata"
|
"go.opentelemetry.io/otel/sdk/metric/metricdata"
|
||||||
)
|
)
|
||||||
|
|
||||||
// observerShape mirrors gitea.unbound.se/shiny/subscriptions.Observer. This
|
// observerShape mirrors git.unbound.se/shiny/subscriptions.Observer. This
|
||||||
// compile-time assertion guards that SubscriptionMetrics still satisfies that
|
// compile-time assertion guards that SubscriptionMetrics still satisfies that
|
||||||
// interface structurally, without otelsetup importing the library.
|
// interface structurally, without otelsetup importing the library.
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in new issue
Block a user