Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

Commit

Permalink
Loosen regex for agent attribute (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
the-ericwang35 authored Aug 7, 2020
1 parent 29edcb5 commit 649245c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/validation/mock_trace_validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ var (
}
requiredFields = []string{"Name", "SpanId", "DisplayName", "StartTime", "EndTime"}
spanNameRegex = regexp.MustCompile("^projects/[^/]+/traces/[a-fA-F0-9]{32}/spans/[a-fA-F0-9]{16}$")
agentRegex = regexp.MustCompile(`^opentelemetry-[a-zA-Z]+ [0-9]+\.[0-9]+\.[0-9]+; google-cloud-trace-exporter [0-9]+\.[0-9]+\.[0-9]+$`)
agentRegex = regexp.MustCompile(`^opentelemetry-[a-zA-Z]+ \d+(?:\.\d+)+; google-cloud-trace-exporter \d+(?:\.\d+)+$`)
)

// SpanData wraps all the span data on the server into a struct.
Expand Down

0 comments on commit 649245c

Please sign in to comment.