Documentation
¶
Overview ¶
Package version comprises functions that are used to retrieve *app* version data from incoming traces.
Index ¶
- func GetAppVersionFromTrace(root *trace.Span, t *trace.TraceChunk) string
- func GetGitCommitShaFromTrace(root *trace.Span, t *trace.TraceChunk) string
- func GetGitCommitShaFromTraceV1(chunk *idx.InternalTraceChunk) string
- func GetVersionDataFromContainerTags(cTags []string) (gitCommitSha, imageTag string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAppVersionFromTrace ¶
func GetAppVersionFromTrace(root *trace.Span, t *trace.TraceChunk) string
GetAppVersionFromTrace returns the first "version" tag found in trace t. Search starts by root
func GetGitCommitShaFromTrace ¶
func GetGitCommitShaFromTrace(root *trace.Span, t *trace.TraceChunk) string
GetGitCommitShaFromTrace returns the first "git_commit_sha" tag found in trace t.
func GetGitCommitShaFromTraceV1 ¶ added in v0.73.0
func GetGitCommitShaFromTraceV1(chunk *idx.InternalTraceChunk) string
GetGitCommitShaFromTraceV1 returns the "git_commit_sha" tag found in a trace chunk.
func GetVersionDataFromContainerTags ¶
GetVersionDataFromContainerTags will return the git commit sha and image tag from container tags, if present.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.