File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
export HONEYCOMB_API_KEY = your_api_key_here
2
2
export HONEYCOMB_DATASET = cli-telemetry
3
3
export HONEYCOMB_API_URL = https://api.eu1.honeycomb.io
4
- export PORT = 8080
4
+ export HTTP_API_PORT = 8080
Original file line number Diff line number Diff line change 6
6
7
7
// Environment variables
8
8
type Config struct {
9
- Port string `envconfig:"PORT " default:"8080"`
9
+ HTTPAPIPort string `envconfig:"HTTP_API_PORT " default:"8080"`
10
10
HoneycombAPIKey string `envconfig:"HONEYCOMB_API_KEY"`
11
11
HoneycombDataset string `envconfig:"HONEYCOMB_DATASET" default:"cli-telemetry"`
12
12
HoneycombAPIURL string `envconfig:"HONEYCOMB_API_URL"`
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ func main() {
18
18
http .HandleFunc ("/ping" , handlePing )
19
19
http .HandleFunc ("/telemetry/event" , middleware .CORS (forwarder .TelemetryCollectHandler (cfg )))
20
20
21
- addr := fmt .Sprintf (":%s" , cfg .Port )
21
+ addr := fmt .Sprintf (":%s" , cfg .HTTPAPIPort )
22
22
log .Printf ("Starting telemetry server on %s" , addr )
23
23
log .Fatal (http .ListenAndServe (addr , nil ))
24
24
}
You can’t perform that action at this time.
0 commit comments