swift-server / swift-aws-lambda-runtime

Swift implementation of AWS Lambda Runtime
https://swiftpackageindex.com/swift-server/swift-aws-lambda-runtime
Apache License 2.0
1.14k stars 105 forks source link

Instrument with swift-distributed-tracing, and otel-tracer to report into aws-otel #185

Open ktoso opened 3 years ago

ktoso commented 3 years ago

AWS launched https://aws-otel.github.io

so they have a collector available now that accepts otel.

We have the following pieces ready:

Otel just hit 1.0 recently as well.

by using these to revive the instrumentation effort of lambda here things work well.

We should:

cc @slashmo

ktoso commented 3 years ago

We can ofc allow plugging in a different tracer, if say someone wanted to plug in the previously developed XRay one.

It seems though shipping with an "enabled by default" very minimal otel one could be an idea worth trying out. It should be pretty light on the dependencies and bin size.