MCPcopy Index your code
hub / github.com/cloudquery/cloudquery / otelConfig

Function otelConfig

cli/cmd/root.go:253–262  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

251}
252
253func otelConfig() (*otel.Config, error) {
254 insecureEndpoint, err := strconv.ParseBool(env.GetEnvOrDefault("OTEL_ENDPOINT_INSECURE", "false"))
255 if err != nil {
256 return nil, err
257 }
258 return &otel.Config{
259 Endpoint: env.GetEnvOrDefault("OTEL_ENDPOINT", ""),
260 Insecure: insecureEndpoint,
261 }, nil
262}

Callers 1

NewCmdRootFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected