apple / apple/swift-distributed-tracing
Dinner sample fails to export data to the collector
- Dominant language
- Swift
- Stars
- 320
- Forks
- 57
- Avg merge
- 4d 5h
- Merged PRs (30d)
- 1
Description
Hi,
I am trying out the Dinner sample following [this guide](https://swiftpackageindex.com/apple/swift-distributed-tracing/1.1.0/documentation/tracing/traceyourapplication#Introducing-Trace-Spans) in the documentation, but when I run the executable I got this failure logged in the terminal:
```
2024-03-14T14:00:13+0100 trace OTel : process.command_line=.build/arm64-apple-macosx/release/onboarding process.executable.name=onboarding process.executable.path=.build/arm64-apple-macosx/release/onboarding process.owner=niccolo.fontana process.pid=33126 service.name=DinnerService telemetry.sdk.language=swift telemetry.sdk.name=opentelemetry telemetry.sdk.version=0.7.0 [OpenTelemetry] Detected resource
2024-03-14T14:00:13+0100 trace OTel : process.command_line=.build/arm64-apple-macosx/release/onboarding process.executable.name=onboarding process.executable.path=.build/arm64-apple-macosx/release/onboarding process.owner=niccolo.fontana process.pid=33126 service.name=ChoppingService-1 telemetry.sdk.language=swift telemetry.sdk.name=opentelemetry telemetry.sdk.version=0.7.0 [OpenTelemetry] Detected resource
2024-03-14T14:00:13+0100 trace OTel : process.command_line=.build/arm64-apple-macosx/release/onboarding process.executable.name=onboarding process.executable.path=.build/arm64-apple-macosx/release/onboarding process.owner=niccolo.fontana process.pid=33126 service.name=ChoppingService-2 telemetry.sdk.language=swift telemetry.sdk.name=opentelemetry telemetry.sdk.version=0.7.0 [OpenTelemetry] Detected resource
2024-03-14T14:00:17+0100 trace OtlpGRPCSpanExporter : batch-size=1 [OtlpGRPCSpanExporting] Exporting batch of spans
2024-03-14T14:00:18+0100 trace OtlpGRPCSpanExporter : batch-size=1 [OtlpGRPCSpanExporting] Exporting batch of spans
2024-03-14T14:00:18+0100 trace OtlpGRPCSpanExporter : batch-size=1 [OtlpGRPCSpanExporting] Exporting batch of spans
2024-03-14T14:00:18+0100 trace OtlpGRPCSpanExporter : batch-size=1 [OtlpGRPCSpanExporting] Exporting batch of spans
2024-03-14T14:00:19+0100 trace OtlpGRPCSpanExporter : batch-size=1 [OtlpGRPCSpanExporting] Exporting batch of spans
2024-03-14T14:00:24+0100 trace OtlpGRPCSpanExporter : batch-size=1 [OtlpGRPCSpanExporting] Exporting batch of spans
2024-03-14T14:00:24+0100 trace OtlpGRPCSpanExporter : batch-size=1 [OtlpGRPCSpanExporting] Exporting batch of spans
2024-03-14T14:00:26+0100 debug OtlpGRPCSpanExporter : error=unavailable (14): Connection was shutdown by the user [OtlpGRPCSpanExporting] Failed to export batch
2024-03-14T14:00:26+0100 debug OtlpGRPCSpanExporter : error=unavailable (14): Connection was shutdown by the user [OtlpGRPCSpanExporting] Failed to export batch
2024-03-14T14:00:26+0100 debug OtlpGRPCSpanExporter : error=unavailable (14): Connection was shutdown by the user [OtlpGRPCSpanExporting] Failed to export batch
2024-03-14T14:00:26+0100 debug OtlpGRPCSpanExporter : error=unavailable (14): Connection was shutdown by the user [OtlpGRPCSpanExporting] Failed to export batch
2024-03-14T14:00:26+0100 debug OtlpGRPCSpanExporter : error=unavailable (14): Connection was shutdown by the user [OtlpGRPCSpanExporting] Failed to export batch
2024-03-14T14:00:26+0100 debug OtlpGRPCSpanExporter : error=unavailable (14): Connection was shutdown by the user [OtlpGRPCSpanExporting] Failed to export batch
2024-03-14T14:00:26+0100 debug OtlpGRPCSpanExporter : error=unavailable (14): Connection was shutdown by the user [OtlpGRPCSpanExporting] Failed to export batch
```
Is there anything I should check out to confirm everything is properly set up?
I am running it on
- macOS Sonoma 14.3.1
- Swift 5.9
- Xcode 15.2
Thank you.
Contributor guide
Assessment
This issue has not been assessed yet.