Help us shape the future of Go! Take the 2026 Go Developer Survey

version

package
v0.84.6 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: Apache-2.0 Imports: 2 Imported by: 1

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(cTags []string) (gitCommitSha, imageTag, appVersion string)

GetVersionDataFromContainerTags will return the git commit sha, image tag, and app version 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