Skip to content

Commit

Permalink
Adding some logging to drop late
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosroman committed Oct 30, 2024
1 parent 1e45c4f commit d4e9190
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/serverless/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,10 @@ func startOtlpAgent(wg *sync.WaitGroup, metricAgent *metrics.ServerlessMetricAge
func startTraceAgent(wg *sync.WaitGroup, lambdaSpanChan chan *pb.Span, coldStartSpanId uint64, serverlessDaemon *daemon.Daemon) {
defer wg.Done()
apmEnabled := configUtils.IsDefaultPayloadsEnabled(pkgconfigsetup.Datadog()) && pkgconfigsetup.Datadog().GetBool("apm_config.enabled")
log.Infof("Got apmEnabled: \"%b\", \"default_payloads.enabled\": %t, \"apm_config.enabled\": %t",
apmEnabled,
configUtils.IsDefaultPayloadsEnabled(pkgconfigsetup.Datadog()),
pkgconfigsetup.Datadog().GetBool("apm_config.enabled"))
traceAgent := trace.StartServerlessTraceAgent(apmEnabled, &trace.LoadConfig{Path: datadogConfigPath}, lambdaSpanChan, coldStartSpanId)
serverlessDaemon.SetTraceAgent(traceAgent)
}
Expand Down

0 comments on commit d4e9190

Please sign in to comment.