feat: move module path to git.unbound.se (#212)
otelsetup / test (push) Successful in 55s
otelsetup / vulnerabilities (push) Successful in 58s
Unbound Release / Check Preconditions (push) Successful in 1s
Unbound Release / Create Tag (push) Skipped
pre-commit / pre-commit (push) Successful in 1m20s
Unbound Release / Generate Changelog and Handle PR (push) Successful in 13s
Unbound Release / Create Release (push) Successful in 14s
Release / release (push) Successful in 12m59s

This commit was merged in pull request #212.
This commit is contained in:
argoyle committed 2026-10-17 17:59:06 +00:00
1 parent d035ff1b6c
commit 8f0c2473a8
6 files changed
+7 -5

No files matched your search

+1 -1
View File
@@ -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:
+1 -1
View File
@@ -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 -1
View File
@@ -1,4 +1,4 @@
module gitea.unbound.se/shiny/otelsetup module git.unbound.se/shiny/otelsetup
go 1.26.0 go 1.26.0
+1
View File
@@ -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 -1
View File
@@ -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:
// //
+1 -1
View File
@@ -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.
// //