Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions connector/servicegraphconnector/connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
"go.opentelemetry.io/collector/pdata/pmetric"
"go.opentelemetry.io/collector/pdata/ptrace"
"go.opentelemetry.io/collector/processor"
conventionsv125 "go.opentelemetry.io/otel/semconv/v1.25.0"
conventionsv128 "go.opentelemetry.io/otel/semconv/v1.28.0"
conventionsv138 "go.opentelemetry.io/otel/semconv/v1.38.0"
conventions "go.opentelemetry.io/otel/semconv/v1.40.0"
"go.uber.org/zap"

"github.com/open-telemetry/opentelemetry-collector-contrib/connector/servicegraphconnector/internal/metadata"
Expand All @@ -48,10 +46,10 @@
}

defaultPeerAttributes = []string{
string(conventionsv138.PeerServiceKey), string(conventionsv125.DBNameKey), string(conventionsv128.DBSystemKey),
string(conventions.PeerServiceKey), "db.name", "db.system",

Check failure on line 49 in connector/servicegraphconnector/connector.go

View workflow job for this annotation

GitHub Actions / govulncheck (connector)

undefined: conventions.PeerServiceKey
}

defaultDatabaseNameAttributes = []string{string(conventionsv125.DBNameKey)}
defaultDatabaseNameAttributes = []string{"db.name"}

defaultMetricsFlushInterval = 60 * time.Second // 1 DPM
)
Expand Down
Loading