Skip to content

Commit

Permalink
fix: propagate and handle metadata errors (#254)
Browse files Browse the repository at this point in the history
metadata processing errors were being logged and ignored
leading a nil metadata.
  • Loading branch information
kruskall authored Jul 29, 2022
1 parent c3d7919 commit aeb8f05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apm-lambda-extension/apmproxy/apmserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func (c *Client) ForwardApmData(ctx context.Context, metadataContainer *Metadata
if metadataContainer.Metadata == nil {
metadata, err := ProcessMetadata(agentData)
if err != nil {
extension.Log.Errorf("Error extracting metadata from agent payload %v", err)
return fmt.Errorf("failed to extract metadata from agent payload %w", err)
}
metadataContainer.Metadata = metadata
}
Expand Down

0 comments on commit aeb8f05

Please sign in to comment.