Skip to content

Commit cad9855

Browse files
committed
Fix semconv call
Signed-off-by: Bryan Frimin <bryan@getprobo.com>
1 parent 3f1784a commit cad9855

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

pg/tracer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func connectionConfigAttributes(config *pgx.ConnConfig) []trace.SpanStartOption
6969
trace.WithAttributes(
7070
semconv.NetworkPeerAddress(config.Host),
7171
semconv.NetworkPeerPort(int(config.Port)),
72-
semconv.DBSystemPostgreSQL,
72+
semconv.DBSystemNamePostgreSQL,
7373
),
7474
}
7575
}

unit/unit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ func (u *Unit) runTracingExporter(ctx context.Context, initialized chan<- trace.
347347
semconv.SchemaURL,
348348
semconv.ServiceName(u.name),
349349
semconv.ServiceVersion(u.version),
350-
semconv.DeploymentEnvironment(u.environment),
350+
semconv.DeploymentEnvironmentName(u.environment),
351351
),
352352
),
353353
)

0 commit comments

Comments
 (0)