Compare commits
No commits in common. "d3bfd07b848822684cc00424bbba7aba118710a4" and "ac71d2f5e3289bc0680fadb7cc442049dd961f70" have entirely different histories.
d3bfd07b84
...
ac71d2f5e3
|
@ -114,4 +114,3 @@ fabric.properties
|
|||
# Android studio 3.1+ serialized cache file
|
||||
.idea/caches/build_file_checksums.ser
|
||||
|
||||
.idea
|
||||
|
|
4
apm.go
4
apm.go
|
@ -32,7 +32,6 @@ type OtelConfig struct {
|
|||
ServiceName string
|
||||
ServiceVersion string
|
||||
Env string
|
||||
StreamName string
|
||||
}
|
||||
|
||||
func InitOtelAPM(config OtelConfig) error {
|
||||
|
@ -47,9 +46,6 @@ func InitOtelAPM(config OtelConfig) error {
|
|||
if config.AuthHeader != "" {
|
||||
authHeaders["Authorization"] = config.AuthHeader
|
||||
}
|
||||
if config.StreamName != "" {
|
||||
authHeaders["stream-name"] = config.StreamName
|
||||
}
|
||||
otlpHTTPExporter, err := otlptracehttp.New(context.Background(),
|
||||
otlptracehttp.WithEndpoint(config.Endpoint),
|
||||
otlptracehttp.WithURLPath(config.Path),
|
||||
|
|
Loading…
Reference in New Issue