Skip to content

Commit

Permalink
chore: PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
wikiwong committed Aug 12, 2023
1 parent 27538cb commit cfe8ad6
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 8 deletions.
1 change: 0 additions & 1 deletion go/adapter/datadog/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ func (d *DatadogAdapter) Flush(evts []observe.TraceEvent) error {
}

if len(allSpans) == 0 {
log.Println("No spans built for datadog trace")
return nil
}

Expand Down
3 changes: 1 addition & 2 deletions go/adapter/honeycomb/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
type HoneycombConfig struct {
ApiKey string
Dataset string
EmitTracesInterval uint32
EmitTracesInterval time.Duration
TraceBatchMax uint32
Host string
}
Expand Down Expand Up @@ -68,7 +68,6 @@ func (h *HoneycombAdapter) Flush(evts []observe.TraceEvent) error {
}

if len(allSpans) == 0 {
log.Println("No spans built for honeycomb")
return nil
}

Expand Down
3 changes: 1 addition & 2 deletions go/adapter/lightstep/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
type LightstepConfig struct {
ApiKey string
ServiceName string
EmitTracesInterval uint32
EmitTracesInterval time.Duration
TraceBatchMax uint32
Host string
}
Expand Down Expand Up @@ -68,7 +68,6 @@ func (h *LightstepAdapter) Flush(evts []observe.TraceEvent) error {
}

if len(allSpans) == 0 {
log.Println("No spans built for lightstep")
return nil
}

Expand Down
1 change: 0 additions & 1 deletion go/adapter/otel_stdout/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ func (o *OtelStdoutAdapter) Flush(evts []observe.TraceEvent) error {
}

if len(allSpans) == 0 {
log.Println("No spans built for datadog trace")
return nil
}

Expand Down
2 changes: 1 addition & 1 deletion go/bin/honeycomb/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func main() {
conf := &honeycomb.HoneycombConfig{
ApiKey: os.Getenv("HONEYCOMB_API_KEY"),
Dataset: "golang",
EmitTracesInterval: 1000,
EmitTracesInterval: time.Second * 1,
TraceBatchMax: 100,
Host: "https://api.honeycomb.io",
}
Expand Down
2 changes: 1 addition & 1 deletion go/bin/lightstep/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func main() {
conf := &lightstep.LightstepConfig{
ApiKey: os.Getenv("LIGHTSTEP_API_KEY"),
ServiceName: "golang",
EmitTracesInterval: 1000,
EmitTracesInterval: time.Second * 1,
TraceBatchMax: 100,
Host: "https://ingest.lightstep.com",
}
Expand Down

0 comments on commit cfe8ad6

Please sign in to comment.