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

tracingenv

package
v1.2.0 Latest Latest
Warning

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

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

Documentation

Overview

Package tracingenv provides environment variable parsing helpers shared by the tracing semantic convention implementations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBoolEnv

func GetBoolEnv(key string, defaultValue bool) bool

GetBoolEnv reads a boolean value from an environment variable. Returns defaultValue if the variable is not set or cannot be parsed.

func GetIntEnv

func GetIntEnv(key string, defaultValue int) int

GetIntEnv reads an integer value from an environment variable. Returns defaultValue if the variable is not set or cannot be parsed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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