Skip to content

Commit

Permalink
Log Agent Telemetry If In Debug Mode (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
kolanos authored Oct 11, 2021
1 parent 81c21a7 commit d0577fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ func mainLoop(ctx context.Context, invocationClient *client.InvocationClient, ba
select {
case telemetryBytes := <-telemetryChan:
// We received telemetry
util.Debugf("Agent telemetry bytes: %s", base64.URLEncoding.EncodeToString(telemetryBytes))
batch.AddTelemetry(lastRequestId, telemetryBytes)
util.Logf("We suspected a timeout for request %s but got telemetry anyway", lastRequestId)
default:
Expand Down
2 changes: 1 addition & 1 deletion util/extension.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ package util

const (
Name = "newrelic-lambda-extension"
Version = "2.0.3"
Version = "2.0.4"
Id = Name + ":" + Version
)

0 comments on commit d0577fb

Please sign in to comment.