honeycombio / beeline-go

Legacy instrumentation for golang apps with Honeycomb
https://honeycomb.io
Apache License 2.0
74 stars 48 forks source link

feat: Add Environment & Services support #309

Closed JamieDanielson closed 2 years ago

JamieDanielson commented 2 years ago

Which problem is this PR solving?

Short description of the changes

If using an environment-aware key:

warning provided if dataset is set in config when using environment key: WARN: Dataset is ignored in favor of service name. Data will be sent to service name: message-go warning provided if extra whitespace detected in service name: WARN: Service name has unexpected spaces

If using a classic key:

warnings provided if no env vars set and using classic key:

WARN: Missing dataset. Data will be sent to:beeline-go WARN: Missing API Key. WARN: Missing service name.