XCLogParser icon indicating copy to clipboard operation
XCLogParser copied to clipboard

FEATURE: New reporter for OpenTelemetry

Open secustor opened this issue 2 years ago • 3 comments

Looking at the definition of BuildStep it looks like there is everything to create traces in the OTEL format.

This would allow to send build profiling data to nearly any Observability tooling.

Based on the short peak into the code base this should need only a new reporter.

TBD:

  • should only an export to a file be supported or direct push to a compatible endpoint too?

secustor avatar Oct 13 '23 13:10 secustor

That's an interesting idea. I never personally used OpenTelemetry before, but it sounds like this should be a nice feature to introduce. Would you send to OpenTelemetry the parsed file from the machine after parsing it with XCLogParser?

BalestraPatrick avatar Oct 13 '23 20:10 BalestraPatrick

The simplest implementation would to start with integrating https://github.com/open-telemetry/opentelemetry-swift which would push the traces to a compatible backend directly. That could be OSS tools like Jaeger or Grafana Tempo on the one side or SaaS sytems like Datadog

secustor avatar Oct 14 '23 08:10 secustor

I'd recommend https://github.com/apple/swift-distributed-tracing over the opentelemetry-swift port as that's where the Swift on Server ecosystem is moving.

bok- avatar Oct 26 '23 01:10 bok-