File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ import (
1010 "syscall"
1111 "time"
1212
13- "github.com/openshift-hyperfleet/hyperfleet-sentinel/pkg/telemetry"
1413 "github.com/prometheus/client_golang/prometheus"
1514 "github.com/prometheus/client_golang/prometheus/promhttp"
1615 "github.com/spf13/cobra"
@@ -19,13 +18,15 @@ import (
1918 "gopkg.in/yaml.v3"
2019
2120 "github.com/openshift-hyperfleet/hyperfleet-broker/broker"
21+
2222 "github.com/openshift-hyperfleet/hyperfleet-sentinel/internal/client"
2323 "github.com/openshift-hyperfleet/hyperfleet-sentinel/internal/config"
2424 "github.com/openshift-hyperfleet/hyperfleet-sentinel/internal/engine"
2525 "github.com/openshift-hyperfleet/hyperfleet-sentinel/internal/health"
2626 "github.com/openshift-hyperfleet/hyperfleet-sentinel/internal/metrics"
2727 "github.com/openshift-hyperfleet/hyperfleet-sentinel/internal/sentinel"
2828 "github.com/openshift-hyperfleet/hyperfleet-sentinel/pkg/logger"
29+ "github.com/openshift-hyperfleet/hyperfleet-sentinel/pkg/telemetry"
2930)
3031
3132var (
Original file line number Diff line number Diff line change @@ -11,9 +11,10 @@ import (
1111 "time"
1212
1313 "github.com/cenkalti/backoff/v5"
14+ "go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp"
15+
1416 "github.com/openshift-hyperfleet/hyperfleet-sentinel/pkg/api/openapi"
1517 "github.com/openshift-hyperfleet/hyperfleet-sentinel/pkg/logger"
16- "go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp"
1718)
1819
1920// Retry configuration constants
Original file line number Diff line number Diff line change @@ -8,9 +8,10 @@ import (
88 "strings"
99 "time"
1010
11- "github.com/openshift-hyperfleet/hyperfleet-sentinel/pkg/logger"
1211 "github.com/spf13/pflag"
1312 "github.com/spf13/viper"
13+
14+ "github.com/openshift-hyperfleet/hyperfleet-sentinel/pkg/logger"
1415)
1516
1617const (
Original file line number Diff line number Diff line change 99 "github.com/google/cel-go/common/types"
1010 "github.com/google/cel-go/common/types/ref"
1111 "github.com/google/cel-go/ext"
12+
1213 "github.com/openshift-hyperfleet/hyperfleet-sentinel/internal/client"
1314 "github.com/openshift-hyperfleet/hyperfleet-sentinel/internal/config"
1415)
Original file line number Diff line number Diff line change @@ -5,9 +5,10 @@ import (
55 "strings"
66 "sync"
77
8+ "github.com/prometheus/client_golang/prometheus"
9+
810 "github.com/openshift-hyperfleet/hyperfleet-sentinel/internal/config"
911 "github.com/openshift-hyperfleet/hyperfleet-sentinel/pkg/logger"
10- "github.com/prometheus/client_golang/prometheus"
1112)
1213
1314// Subsystem used to define the metrics
Original file line number Diff line number Diff line change @@ -4,9 +4,10 @@ import (
44 "strings"
55 "testing"
66
7- "github.com/openshift-hyperfleet/hyperfleet-sentinel/internal/config"
87 "github.com/prometheus/client_golang/prometheus"
98 "github.com/prometheus/client_golang/prometheus/testutil"
9+
10+ "github.com/openshift-hyperfleet/hyperfleet-sentinel/internal/config"
1011)
1112
1213const testVersion = "v1.0.0-test"
Original file line number Diff line number Diff line change 66 "time"
77
88 "github.com/google/cel-go/cel"
9+
910 "github.com/openshift-hyperfleet/hyperfleet-sentinel/internal/client"
1011 "github.com/openshift-hyperfleet/hyperfleet-sentinel/pkg/logger"
1112)
Original file line number Diff line number Diff line change @@ -9,16 +9,18 @@ import (
99
1010 cloudevents "github.com/cloudevents/sdk-go/v2"
1111 "github.com/google/uuid"
12+ "go.opentelemetry.io/otel/attribute"
13+ "go.opentelemetry.io/otel/codes"
14+
1215 "github.com/openshift-hyperfleet/hyperfleet-broker/broker"
16+
1317 "github.com/openshift-hyperfleet/hyperfleet-sentinel/internal/client"
1418 "github.com/openshift-hyperfleet/hyperfleet-sentinel/internal/config"
1519 "github.com/openshift-hyperfleet/hyperfleet-sentinel/internal/engine"
1620 "github.com/openshift-hyperfleet/hyperfleet-sentinel/internal/metrics"
1721 "github.com/openshift-hyperfleet/hyperfleet-sentinel/internal/payload"
1822 "github.com/openshift-hyperfleet/hyperfleet-sentinel/pkg/logger"
1923 "github.com/openshift-hyperfleet/hyperfleet-sentinel/pkg/telemetry"
20- "go.opentelemetry.io/otel/attribute"
21- "go.opentelemetry.io/otel/codes"
2224)
2325
2426// otelMessagingSystem maps broker type identifiers to OTel semantic convention values
Original file line number Diff line number Diff line change @@ -11,15 +11,16 @@ import (
1111 "time"
1212
1313 cloudevents "github.com/cloudevents/sdk-go/v2"
14+ "github.com/prometheus/client_golang/prometheus"
15+ "go.opentelemetry.io/otel"
16+ "go.opentelemetry.io/otel/sdk/trace"
17+ "go.opentelemetry.io/otel/sdk/trace/tracetest"
18+
1419 "github.com/openshift-hyperfleet/hyperfleet-sentinel/internal/client"
1520 "github.com/openshift-hyperfleet/hyperfleet-sentinel/internal/config"
1621 "github.com/openshift-hyperfleet/hyperfleet-sentinel/internal/engine"
1722 "github.com/openshift-hyperfleet/hyperfleet-sentinel/internal/metrics"
1823 "github.com/openshift-hyperfleet/hyperfleet-sentinel/pkg/logger"
19- "github.com/prometheus/client_golang/prometheus"
20- "go.opentelemetry.io/otel"
21- "go.opentelemetry.io/otel/sdk/trace"
22- "go.opentelemetry.io/otel/sdk/trace/tracetest"
2324)
2425
2526const (
Original file line number Diff line number Diff line change 88 "strings"
99
1010 cloudevents "github.com/cloudevents/sdk-go/v2"
11- "github.com/openshift-hyperfleet/hyperfleet-sentinel/pkg/logger"
1211 "go.opentelemetry.io/contrib/propagators/autoprop"
1312 "go.opentelemetry.io/otel"
1413 "go.opentelemetry.io/otel/attribute"
@@ -19,6 +18,8 @@ import (
1918 "go.opentelemetry.io/otel/sdk/trace"
2019 semconv "go.opentelemetry.io/otel/semconv/v1.37.0"
2120 oteltrace "go.opentelemetry.io/otel/trace"
21+
22+ "github.com/openshift-hyperfleet/hyperfleet-sentinel/pkg/logger"
2223)
2324
2425const (
You can’t perform that action at this time.
0 commit comments