Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewOTELResourceFromEnv ¶
NewOTELResourceFromEnv creates a new OpenTelemetry resource from environment variables. It loads various resource attributes from the environment, including service, container, Kubernetes, and cloud resources. It also sets the deployment environment attribute.
Parameters:
- ctx: The context for resource creation.
Returns:
- res: The created OpenTelemetry resource.
- env: The deployment environment value.
- err: An error if any occurred during resource creation or if required environment variables are missing.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.