inception-health / otel-export-trace-action

MIT License
95 stars 29 forks source link

Action Runs but No Traces #154

Open derkkila opened 1 year ago

derkkila commented 1 year ago

Hello, I have the action added to my workflow, and using the available debug logging in GitHub I see it create the trace and spans, however I never get anything on my OTEL collector nor any error on the Action saying the call to the collector failed.

Having trouble troubleshooting the issue based on limited logging

derkkila commented 1 year ago

[debug]TraceID: dc186ed90f07e9a529ecaff5d74125e3

[debug]Root Span: dc186ed90f07e9a529ecaff5d74125e3: 2023-07-27T18:03:19Z

[debug]Trace Job 15[40]

[debug]Job Span<69d982f50fd35671>: Started<2023-07-27T18:03:27Z>

[debug]Trace 12 Steps

[debug]Trace Step Set up job

[debug]Step Span<1f5f54f29656cb0d>: Started<2023-07-27T14:03:26.000-04:00>

[debug]No Artifact to trace for Job Step

[debug]Step Span<1f5f54f29656cb0d>: Ended<2023-07-27T14:03:28.000-04:00>

[debug]Trace Step Pull culturehq/actions-yarn:latest

[debug]Step Span<059d2719db704091>: Started<2023-07-27T14:03:28.000-04:00>

[debug]No Artifact to trace for Job Step<Pull culturehq/actions-yarn:latest>

[debug]Step Span<059d2719db704091>: Ended<2023-07-27T14:03:32.000-04:00>

[debug]Trace Step Pull ghcr.io/splunk/appinspect-cli-action/appinspect-cli-action:v1.9.1

[debug]Step Span<20392bfd059205fd>: Started<2023-07-27T14:03:32.000-04:00>

[debug]No Artifact to trace for Job Step

[debug]Step Span<20392bfd059205fd>: Ended<2023-07-27T14:03:51.000-04:00>

[debug]Trace Step Run actions/checkout@v2

[debug]Step Span<88b2395af961aee8>: Started<2023-07-27T14:03:51.000-04:00>

[debug]No Artifact to trace for Job Step<Run actions/checkout@v2>

[debug]Step Span<88b2395af961aee8>: Ended<2023-07-27T14:03:52.000-04:00>

[debug]Trace Step Install deps

[debug]Step Span<33eb92845ac70b20>: Started<2023-07-27T14:03:53.000-04:00>

[debug]No Artifact to trace for Job Step

[debug]Step Span<33eb92845ac70b20>: Ended<2023-07-27T14:04:20.000-04:00>

[debug]Trace Step Lint

[debug]Step Span<3aeaaaa72a61b694>: Started<2023-07-27T14:04:20.000-04:00>

[debug]No Artifact to trace for Job Step

[debug]Step Span<3aeaaaa72a61b694>: Ended<2023-07-27T14:04:21.000-04:00>

[debug]Trace Step Build

[debug]Step Span<833d5d276151f590>: Started<2023-07-27T14:04:21.000-04:00>

[debug]No Artifact to trace for Job Step

[debug]Step Span<833d5d276151f590>: Ended<2023-07-27T14:04:22.000-04:00>

[debug]Trace Step Update Version Number

[debug]Step Span: Started<2023-07-27T14:04:22.000-04:00>

[debug]No Artifact to trace for Job Step

[debug]Step Span: Ended<2023-07-27T14:04:22.000-04:00>

[debug]Trace Step Build Package

[debug]Step Span: Started<2023-07-27T14:04:22.000-04:00>

[debug]No Artifact to trace for Job Step

[debug]Step Span: Ended<2023-07-27T14:04:22.000-04:00>

[debug]Trace Step Run App Inspect CLI

[debug]Step Span<3f5a29ccfe0717f1>: Started<2023-07-27T14:04:22.000-04:00>

[debug]No Artifact to trace for Job Step

[debug]Step Span<3f5a29ccfe0717f1>: Ended<2023-07-27T14:04:33.000-04:00>

[debug]Trace Step Post Run actions/checkout@v2

[debug]Step Span<1cd1d5bb356c2baf>: Started<2023-07-27T14:04:35.000-04:00>

[debug]No Artifact to trace for Job Step<Post Run actions/checkout@v2>

[debug]Step Span<1cd1d5bb356c2baf>: Ended<2023-07-27T14:04:35.000-04:00>

[debug]Trace Step Complete job

[debug]Step Span: Started<2023-07-27T14:04:34.000-04:00>

[debug]No Artifact to trace for Job Step

[debug]Step Span: Ended<2023-07-27T14:04:34.000-04:00>

[debug]Job Span<69d982f50fd35671>: Ended<2023-07-27T18:04:35Z>

Shutdown Trace Provider Provider shutdown

[debug]Node Action run completed with exit code 0

[debug]Set output traceId = dc186ed90f07e9a529ecaff5d7[41]()25e3

[debug]Finishing: Export Workflow Trace

nikordaris commented 1 year ago

I believe another person reported authentication errors weren't getting logged. I don't think this was ever resolved. You'll want to double check the header env vars are set correctly for your collector. The authentication error is somewhere inside the otel library so we'd have to figure out how to configure it to turn on debug logging. Which is what I suspect the logging issue is for this.