Skip to content

Commit 7a76ad6

Browse files
committed
Apparently the "operation" is the base path?
1 parent 7d4662e commit 7a76ad6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cmd/randomizer-lambda/main.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ func main() {
7070
StoreFactory: storeFactory,
7171
Logger: logger,
7272
}
73-
appHandler := otelhttp.NewHandler(app, "slack")
74-
adapterHandler := httpadapter.NewV2(appHandler).ProxyWithContext
75-
handler := otellambda.InstrumentHandler(adapterHandler, xrayconfig.WithRecommendedOptions(tp)...)
76-
lambda.Start(handler)
73+
httpHandler := otelhttp.NewHandler(app, "/")
74+
adapterHandler := httpadapter.NewV2(httpHandler).ProxyWithContext
75+
parentHandler := otellambda.InstrumentHandler(adapterHandler, xrayconfig.WithRecommendedOptions(tp)...)
76+
lambda.Start(parentHandler)
7777
}
7878

7979
var xrayTracingEnabled = os.Getenv("AWS_XRAY_TRACING_ENABLED") == "1"

0 commit comments

Comments
 (0)