1
0
Fork 0

fix: otel not working without USER

This commit is contained in:
Michael 2025-10-03 14:48:04 +02:00 committed by GitHub
parent ad566ee9ef
commit c5ed376d5f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
127 changed files with 347 additions and 305 deletions

View file

@ -10,6 +10,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/traefik/traefik/v3/pkg/config/static"
otypes "github.com/traefik/traefik/v3/pkg/observability/types"
"github.com/traefik/traefik/v3/pkg/ping"
"github.com/traefik/traefik/v3/pkg/provider/rest"
"github.com/traefik/traefik/v3/pkg/types"
@ -41,8 +42,8 @@ func Test_createConfiguration(t *testing.T) {
Insecure: true,
},
},
Metrics: &types.Metrics{
Prometheus: &types.Prometheus{
Metrics: &otypes.Metrics{
Prometheus: &otypes.Prometheus{
EntryPoint: "test",
ManualRouting: false,
},
@ -65,8 +66,8 @@ func Test_createConfiguration(t *testing.T) {
Insecure: false,
},
},
Metrics: &types.Metrics{
Prometheus: &types.Prometheus{
Metrics: &otypes.Metrics{
Prometheus: &otypes.Prometheus{
EntryPoint: "test",
ManualRouting: true,
},
@ -150,8 +151,8 @@ func Test_createConfiguration(t *testing.T) {
{
desc: "prometheus_simple.json",
staticCfg: static.Configuration{
Metrics: &types.Metrics{
Prometheus: &types.Prometheus{
Metrics: &otypes.Metrics{
Prometheus: &otypes.Prometheus{
EntryPoint: "test",
ManualRouting: false,
},
@ -161,8 +162,8 @@ func Test_createConfiguration(t *testing.T) {
{
desc: "prometheus_custom.json",
staticCfg: static.Configuration{
Metrics: &types.Metrics{
Prometheus: &types.Prometheus{
Metrics: &otypes.Metrics{
Prometheus: &otypes.Prometheus{
EntryPoint: "test",
ManualRouting: true,
},