Skip to content

Commit

Permalink
Add GCSFuse version in resource definition. (#2464)
Browse files Browse the repository at this point in the history
  • Loading branch information
kislaykishore authored Sep 10, 2024
1 parent bdd71ec commit 0fda69e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/monitor/traceexporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import (

cloudtrace "github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/trace"
"github.com/googlecloudplatform/gcsfuse/v2/cfg"
"github.com/googlecloudplatform/gcsfuse/v2/common"
"github.com/googlecloudplatform/gcsfuse/v2/internal/logger"
"go.opentelemetry.io/otel"
"go.opentelemetry.io/otel/exporters/stdout/stdouttrace"
Expand Down Expand Up @@ -83,6 +84,7 @@ func newGCPCloudTraceExporter(ctx context.Context, c *cfg.Config) (*sdktrace.Tra
resource.WithTelemetrySDK(),
resource.WithAttributes(
semconv.ServiceName(appName),
semconv.ServiceVersion(common.GetVersion()),
),
)
if err != nil {
Expand Down

0 comments on commit 0fda69e

Please sign in to comment.