Benign go Download

github.com/open-telemetry/opentelemetry-collector-contrib/connector/spanmetricsconnector v0.119.0

Basename is uppercase README.mdContains an unbounded block loop

Evidence

GitHub service URL reference README.md · line 7
7:173… r%2Fspanmetrics%20&label=open&color=orange&logo=opentelemetry)](https://github.com/open-telemetry/opentelemetry-collector-contrib/issues?q=is%3Aopen+is%3Aissue+label%3Aconnector%2Fspanmetrics) [![Closed issues]( …
At least four Markdown-style heading lines README.md · lines 12–17
12:56… try-collector-releases/tree/main/distributions/otelcol-contrib
13
14## Supported Pipeline Types
15
16| [Exporter Pipeline Type] | [Receiver Pipeline Type] | [Stability Level] |
17| ------------------------ | --------------------- …
Source SPDX license identifier declaration config.go · lines 1–19
1// Copyright The OpenTelemetry Authors
2// SPDX-License-Identifier: Apache-2.0
3
4package spanmetricsconnector // import "github.com/open-telemetry/opentelemetry-collector-contrib/connector/spanmetricsconnector"
5
6import (
7 "errors"
8 "fmt"
9 "time"
10
11 "go.opentelemetry.io/collector/component"
12 "go.opentelemetry.io/collector/pdata/pmetric"
13
14 "github.com/open-telemetry/opentelemetry-collector-contrib/connector/spanmetricsconnector/internal/metrics"
15)
16
17const (
18 delta = "AGGREGATION_TEMPORALITY_DELTA"
19 cumulative = "AGGREGATION_TEMPORALI …
Assigns or defaults bound to 1000-1024 config.go · lines 23–29
23:25… , 200, 400, 800, 1000, 1400, 2000, 5000, 10_000, 15_000,
24}
25
26var defaultDeltaTimestampCacheSize = 1000
27
28// Dimension defines the dimension name and optional default value if the Dimension is missing from a span attribute.
29type Dimension struct …
imports net/http config_test.go · lines 1–30
1// Copyright The OpenTelemetry Authors
2// SPDX-License-Identifier: Apache-2.0
3
4package spanmetricsconnector
5
6import (
7 "errors"
8 "net/http"
9 "path/filepath"
10 "testing"
11 "time"
12
13 "github.com/stretchr/testify/assert"
14 "github.com/stretchr/testify/require"
15 "go.opentelemetry.io/collector/component"
16 "go.opentelemetry.io/collector/confmap/confmaptest"
17 "go.opentelemetry.io/collector/pdata/pmetric"
18
19 "github.com/open-telemetry/opentelemetry-collector-contrib/connector/spanmetricsconnector/internal/metadata"
20 "github.com/open-telemetry/opentelemetry-collector-contrib/connector/spanmetricsconnector/internal/metrics"
21)
22
23func TestLoadConfig(t *testing.T) {
24 t.Parallel()
25
26 cm, err := confmaptest.LoadConf(filepath.Join("testdata", "config.yaml"))
27 require.NoError(t, err)
28
29 defaultMethod := http.MethodGet
30 default …

Showing the top 5 files — 4 more files (29 regions) not shown.

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.