Skip to content

Commit

Permalink
test changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nhulston committed Nov 8, 2024
1 parent 6859e8a commit 3769f76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions internal/extension/extension.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,6 @@ func (em *ExtensionManager) SendEndInvocationRequest(ctx context.Context, functi
// }
//}

fmt.Printf("[DEBUG lambda] full extension.go context: %+v\n", ctx)

resp, err := em.httpClient.Do(req)
if err != nil || resp.StatusCode != 200 {
logger.Error(fmt.Errorf("could not send end invocation payload to the extension: %v", err))
Expand Down
2 changes: 2 additions & 0 deletions internal/trace/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,14 @@ func createDummySubsegmentForXrayConverter(ctx context.Context, traceCtx TraceCo

func getTraceContext(ctx context.Context, headers map[string]string) (TraceContext, bool) {
fmt.Printf("[DEBUG] [context.go] [getTraceContext()] headers: %v\n", headers)
fmt.Printf("[DEBUG] [context.go] [getTraceContext()] context: %+v\n", ctx)
tc := TraceContext{}

traceID := headers[traceIDHeader]
if traceID == "" {
if val, ok := ctx.Value(extension.DdTraceId).(string); ok {
traceID = val
fmt.Printf("[DEBUG] [context.go] [getTraceContext()] setting traceID: %s\n", traceID)
}
}
if traceID == "" {
Expand Down

0 comments on commit 3769f76

Please sign in to comment.