tracing

package
v0.111.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AttributeKeyCobraCommand     attribute.Key = "cobra.command"
	AttributeKeyCobraSubcommand  attribute.Key = "cobra.subcommand"
	AttributeKeyCobraCommandPath attribute.Key = "cobra.commandpath"

	AttributeKeyDMDDependenciesCount                      attribute.Key = "dmd.dependencies.count"
	AttributeKeyDMDDependencyUpdatesCount                 attribute.Key = "dmd.dependencyUpdates.count"
	AttributeKeyDMDAdvisoriesSource                       attribute.Key = "dmd.advisories.source"
	AttributeKeyDMDDatasource                             attribute.Key = "dmd.datasource"
	AttributeKeyDMDCustomAdvisoryName                     attribute.Key = "dmd.customAdvisories.name"
	AttributeKeyDMDPolicyName                             attribute.Key = "dmd.policy.name"
	AttributeKeyDMDSBOMFormat                             attribute.Key = "dmd.sbom.format"
	AttributeKeyDMDCLIVersion                             attribute.Key = "dmd.cli.version"
	AttributeKeyDMDDatabaseMetadataCompatibleSinceVersion attribute.Key = "dmd.dbmeta.compatibleSince.version"
	AttributeKeyDMDDatabaseMetadataVersion                attribute.Key = "dmd.dbmeta.dmd.version"
	AttributeKeyDMDDatabaseMetadataFinalised              attribute.Key = "dmd.dbmeta.finalised"

	AttributeKeyEndoflifedateProduct attribute.Key = "endoflifedate.product"
	AttributeKeyEndoflifedateCycle   attribute.Key = "endoflifedate.cycle"

	AttributeKeyEcosystemsPurl    attribute.Key = "ecosystems.purl"
	AttributeKeyEcosystemsVersion attribute.Key = "ecosystems.version"

	AttributeKeyFilesCount attribute.Key = "files.count"
)

Variables

This section is empty.

Functions

func NewHTTPClient

func NewHTTPClient() *http.Client

func SetupOTelSDK

func SetupOTelSDK(ctx context.Context, command Command, version string) (shutdown func(context.Context) error, err error)

func StartSpanForCommand

func StartSpanForCommand(tracer trace.Tracer, cmd *cobra.Command) (context.Context, trace.Span)

Types

type Command

type Command string
const (
	CommandDMD Command = "dmd.tanna.dev/cmd/dmd"
)

Jump to

Keyboard shortcuts

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