feat: support optional otel global initialization for #3284 (#3292)

This commit is contained in:
MiNG
2023-05-28 19:41:48 +08:00
committed by GitHub
parent 28d3905731
commit 1b5946346e
3 changed files with 18 additions and 1 deletions

View File

@@ -16,5 +16,8 @@ type Config struct {
// OtlpHttpPath represents the path for OTLP HTTP transport.
// For example
// /v1/traces
OtlpHttpPath string `json:",optional"`
OtlpHttpPath string `json:",optional"`
// Disabled indicates whether StartAgent should be called when starting the server.
Disabled bool
}