diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d9078db..abca9f4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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: diff --git a/CLAUDE.md b/CLAUDE.md index f971fe8..eed7729 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -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) diff --git a/go.mod b/go.mod index b3fd5d2..e10a4b4 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module gitea.unbound.se/shiny/otelsetup +module git.unbound.se/shiny/otelsetup go 1.26.0 diff --git a/metrics.go b/metrics.go index acb33a3..e77d3e4 100644 --- a/metrics.go +++ b/metrics.go @@ -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 diff --git a/subscription_metrics.go b/subscription_metrics.go index 6133964..85285a5 100644 --- a/subscription_metrics.go +++ b/subscription_metrics.go @@ -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: // diff --git a/subscription_metrics_test.go b/subscription_metrics_test.go index 0ed2129..a5fb2c2 100644 --- a/subscription_metrics_test.go +++ b/subscription_metrics_test.go @@ -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. //