Skip to content

Commit 7c9ebbc

Browse files
authored
Redacted command-line args (#153)
1 parent 0826a7c commit 7c9ebbc

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

pkg/otel/endpoint.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,13 @@ func newResource(name string, attrs []Attr) (*sdkresource.Resource, error) {
7272
context.Background(),
7373
sdkresource.WithAttributes(toAttributes(attrs)...),
7474
sdkresource.WithHost(),
75-
sdkresource.WithProcess(),
75+
sdkresource.WithProcessPID(),
76+
sdkresource.WithProcessExecutableName(),
77+
sdkresource.WithProcessExecutablePath(),
78+
sdkresource.WithProcessOwner(),
79+
sdkresource.WithProcessRuntimeName(),
80+
sdkresource.WithProcessRuntimeVersion(),
81+
sdkresource.WithProcessRuntimeDescription(),
7682
sdkresource.WithTelemetrySDK(),
7783
)
7884
}

0 commit comments

Comments
 (0)