swift-aws-lambda-runtime
swift-aws-lambda-runtime copied to clipboard
Instrument with swift-distributed-tracing, and otel-tracer to report into aws-otel
AWS launched https://aws-otel.github.io
so they have a collector available now that accepts otel.
We have the following pieces ready:
- https://github.com/apple/swift-distributed-tracing
- an minimal otel Tracer compatible with the above APIs https://github.com/slashmo/opentelemetry-swift
Otel just hit 1.0 recently as well.
by using these to revive the instrumentation effort of lambda here things work well.
We should:
- bump dist-tracing otel support to 1.0 and tag it
- instrument lambda
- perhaps import or use the otel tracer in here
- consider going through sswg first
cc @slashmo
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.