MobileNativeFoundation / XCLogParser

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

FEATURE: New reporter for OpenTelemetry #188

Open secustor opened 1 year ago

secustor commented 1 year 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 1 year 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 1 year 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 1 year 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.