Documentation ¶
Overview ¶
Package version comprises functions that are used to retrieve *app* version data from incoming traces.
Index ¶
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 GetVersionDataFromContainerTags ¶
func GetVersionDataFromContainerTags(containerID string, conf *config.AgentConfig) (gitCommitSha, imageTag string, err error)
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.