github.com/open-telemetry/opentelemetry-collector-contrib/connector/spanmetricsconnector v0.119.0
Basename is uppercase README.mdContains an unbounded block loop
SHA-256afee0572ea014be53fb55450e73b36297511c1b97f45faa141b050eb1513a138
Evidence
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) [
16
17const (
18 delta = "AGGREGATION_TEMPORALITY_DELTA"
19 cumulative = "AGGREGATION_TEMPORALI …
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 …
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