version

package
v0.54.0-rc.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL