//
pkg.gl
Category
github.com/nowfred/dd-trace-go
internal
hostname
ec2
package
1.59.5
Repository:
https://github.com/nowfred/dd-trace-go.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
6
Dependents
1
Files
55 SLOC
#
Functions
GetInstanceID
GetInstanceID fetches the instance id for current host from the EC2 metadata API.
IsDefaultHostname
IsDefaultHostname checks if a hostname is an EC2 default.
#
Variables
MaxHostnameSize
declare these as vars not const to ease testing.