You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `service.Settings` type now has a `TelemetryFactory`
field for injecting the `telemetry.Factory` to be used
for creating a logger and logger provider, meter provider,
and tracer provider.
The `otelcol` package is hard-coded to inject an
otelconftelemetry factory for now. In a followup we will
make it possible to inject the telemetry through
`otelcol.Factories`.
expectError: "decoding failed due to the following error(s):\n\n'telemetry.logs' decoding failed due to the following error(s):\n\n'level' unrecognized level: \"UNKNOWN\"",
161
-
},
162
-
{
163
-
name: "invalid-metrics-level",
164
-
conf: confmap.NewFromStringMap(map[string]any{
165
-
"telemetry": map[string]any{
166
-
"metrics": map[string]any{
167
-
"level": "unknown",
168
-
},
155
+
"unknown": "key",
169
156
},
170
157
}),
171
-
expectError: "decoding failed due to the following error(s):\n\n'telemetry.metrics' decoding failed due to the following error(s):\n\n'level' unknown metrics level \"unknown\"",
158
+
expectError: "decoding failed due to the following error(s):\n\n'telemetry' has invalid keys: unknown",
0 commit comments