feat: move module path to git.unbound.se #212

Merged
argoyle merged 1 commits from feat/git-unbound-se-module-path into main 2026-10-17 17:59:07 +00:00
6 changed files with 7 additions and 5 deletions

No files matched your search

+1 -1
View File
@@ -23,7 +23,7 @@ repos:
- id: go-imports
args:
- -local
- gitea.unbound.se/shiny/otelsetup
- git.unbound.se/shiny/otelsetup
- repo: https://github.com/lietu/go-pre-commit
rev: v1.0.0
hooks:
+1 -1
View File
@@ -17,7 +17,7 @@ Provides standardized OpenTelemetry configuration for tracing, metrics, and logg
### Usage
```go
import "gitea.unbound.se/shiny/otelsetup"
import "git.unbound.se/shiny/otelsetup"
// Bootstrap OpenTelemetry SDK
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
+1
View File
@@ -13,6 +13,7 @@ import (
// eventsourcedMeterName is the instrumentation scope for the event-sourcing
// 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"
// 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
// 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"
// SubscriptionMetrics records cross-service subscription push outcomes (the
@@ -17,7 +18,7 @@ const subscriptionMeterName = "gitea.unbound.se/shiny/otelsetup/subscriptions"
// counters.
//
// 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
// to the registry:
//
+1 -1
View File
@@ -11,7 +11,7 @@ import (
"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
// interface structurally, without otelsetup importing the library.
//