Repository navigation
Expand file tree
/
Copy pathweaver.toml
More file actions
70 lines (65 loc) · 2.55 KB
/
Copy pathweaver.toml
File metadata and controls
70 lines (65 loc) · 2.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0
#
# Findings filtered out for the Java scenarios. A declared config replaces the
# runner's weaver-defaults.toml outright rather than extending it, so the shared
# resource filter is repeated below.
# Resource attributes the OTel SDK sets, which belong to no domain registry —
# see https://github.com/open-telemetry/weaver/issues/1456.
[[live-check.finding_filters]]
signal_type = "resource"
exclude_samples = [
"service.name",
"service.instance.id",
"telemetry.sdk.language",
"telemetry.sdk.name",
"telemetry.sdk.version",
"telemetry.auto.version",
]
# The SDK's tracing and OTLP exporter scopes are runner infrastructure rather
# than the instrumentation under test. Ignore every finding attached to them.
[[live-check.finding_filters]]
signal_type = "instrumentation_scope"
exclude_samples = [
"io.opentelemetry.exporters.otlp-grpc",
"io.opentelemetry.sdk.logs",
"io.opentelemetry.sdk.trace",
]
# Netty can log a timer shutdown race under this logger scope. Its presence
# varies between runs, and the logger has no semantic convention schema.
[[live-check.finding_filters]]
signal_type = "instrumentation_scope"
exclude = ["instrumentation_scope_schema_url_missing"]
sample_names = ["io.netty.util.HashedWheelTimer"]
# The Java SDK reports its own export health through the application
# MeterProvider, and autoconfigure 1.64 cannot be told not to: it reads only
# `legacy` and `latest` from `otel.experimental.sdk.telemetry.version` and
# defaults to `legacy`. The metrics describe the SDK rather than the
# instrumented application, so filtering them is the only option. Everything
# but `queueSize` is a counter that exists only once an export has happened,
# which makes leaving them unfiltered fail runs unpredictably.
[[live-check.finding_filters]]
signal_type = "metric"
exclude = ["missing_metric"]
sample_names = [
"queueSize",
"processedSpans",
"processedLogs",
"otlp.exporter.seen",
"otlp.exporter.exported",
]
# Their attributes, filtered separately because `sample_names` scopes on the
# sample a finding hangs off, and a `missing_attribute` finding hangs off the
# attribute rather than the metric — so these name attribute keys, not the
# metrics above. Weaver offers no way to narrow that to one metric, so `type`,
# `success` and `dropped` are only tolerable because this file covers the Java
# scenarios alone.
[[live-check.finding_filters]]
signal_type = "metric"
exclude = ["missing_attribute"]
sample_names = [
"processorType",
"dropped",
"type",
"success",
]