MobileNativeFoundation / XCLogParser

Tool to parse Xcode and xcodebuild logs stored in the xcactivitylog format
Apache License 2.0
1.72k stars 121 forks source link

FEATURE: New reporter for OpenTelemetry #188

Open secustor opened 9 months ago

secustor commented 9 months ago

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:

BalestraPatrick commented 9 months ago

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?

secustor commented 9 months ago

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

bok- commented 8 months ago

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.