@stevejgordon
For further detail:
I've ran a test one more time with the settings above to give an idea of the issue I'm facing, I will include the results for each transaction.
OnStartup:
As with all missing transactions I've been getting the logs aren't showing an error with sampling:
[2025-04-10 12:30:01.310 +01:00][1][Trace] - {Transaction} New Transaction instance created: Transaction{Id: 3400e7ece2c12728, TraceId: 49e02298b41b7996888edd80f1e6a7f4, ParentId: null, Name: OnStartup, Type: Entry, Outcome: Unknown, IsSampled: True}. IsSampled (True) is based on the given sampler (Sampler{ constant: True }). Start time: 2025-04-10 11:30:01.3084490 UTC (as timestamp: 1744284601308449)
[2025-04-10 12:30:01.877 +01:00][1][Trace] - {Transaction} Ended Transaction{Id: 3400e7ece2c12728, TraceId: 49e02298b41b7996888edd80f1e6a7f4, ParentId: null, Name: OnStartup, Type: Entry, Outcome: Success, IsSampled: True}. Start time: 2025-04-10 11:30:01.3084490 UTC (as timestamp: 1744284601308449), End time: 2025-04-10 11:30:01.8778850 UTC (as timestamp: 1744284601877885), Duration: 569.436ms
[2025-04-10 12:30:01.884 +01:00][16][Debug] - {PayloadSenderV2} Enqueued Transaction. newEventQueueCount: 6. MaxQueueEventCount: 1000. Transaction: Transaction{Id: 3400e7ece2c12728, TraceId: 49e02298b41b7996888edd80f1e6a7f4, ParentId: null, Name: OnStartup, Type: Entry, Outcome: Success, IsSampled: True}.
ConfigureServices:
This is now the transaction that I get back fully traced, but I've included the related logs anyway:
[2025-04-10 12:30:01.219 +01:00][1][Trace] - {Transaction} New Transaction instance created: Transaction{Id: 0f3160bc3aac18df, TraceId: 782ef887664f92d9ca9e2c3f64f6a220, ParentId: null, Name: ConfigureServices, Type: Entry, Outcome: Unknown, IsSampled: True}. IsSampled (True) is based on the given sampler (Sampler{ constant: True }). Start time: 2025-04-10 11:30:01.2151770 UTC (as timestamp: 1744284601215177)
[2025-04-10 12:30:01.266 +01:00][1][Trace] - {Transaction} Ended Transaction{Id: 0f3160bc3aac18df, TraceId: 782ef887664f92d9ca9e2c3f64f6a220, ParentId: null, Name: ConfigureServices, Type: Entry, Outcome: Success, IsSampled: True}. Start time: 2025-04-10 11:30:01.2151770 UTC (as timestamp: 1744284601215177), End time: 2025-04-10 11:30:01.2666810 UTC (as timestamp: 1744284601266681), Duration: 51.504ms
[2025-04-10 12:30:01.275 +01:00][16][Debug] - {PayloadSenderV2} Enqueued Transaction. newEventQueueCount: 2. MaxQueueEventCount: 1000. Transaction: Transaction{Id: 0f3160bc3aac18df, TraceId: 782ef887664f92d9ca9e2c3f64f6a220, ParentId: null, Name: ConfigureServices, Type: Entry, Outcome: Success, IsSampled: True}.
Debug:
And as I've come to expect since I usually only get one transaction sampled, this trace is also missing. Logs below:
[2025-04-10 12:30:01.290 +01:00][1][Trace] - {Transaction} New Transaction instance created: Transaction{Id: 32a12deaddb05a08, TraceId: 10e682540588146e884a8cfef3a32d2e, ParentId: null, Name: Debug, Type: Entry, Outcome: Unknown, IsSampled: True}. IsSampled (True) is based on the given sampler (Sampler{ constant: True }). Start time: 2025-04-10 11:30:01.2896590 UTC (as timestamp: 1744284601289659)
[2025-04-10 12:30:01.305 +01:00][1][Trace] - {Transaction} Ended Transaction{Id: 32a12deaddb05a08, TraceId: 10e682540588146e884a8cfef3a32d2e, ParentId: null, Name: Debug, Type: Entry, Outcome: Success, IsSampled: True}. Start time: 2025-04-10 11:30:01.2896590 UTC (as timestamp: 1744284601289659), End time: 2025-04-10 11:30:01.3046980 UTC (as timestamp: 1744284601304698), Duration: 15.039ms
[2025-04-10 12:30:01.308 +01:00][16][Debug] - {PayloadSenderV2} Enqueued Transaction. newEventQueueCount: 4. MaxQueueEventCount: 1000. Transaction: Transaction{Id: 32a12deaddb05a08, TraceId: 10e682540588146e884a8cfef3a32d2e, ParentId: null, Name: Debug, Type: Entry, Outcome: Success, IsSampled: True}.
I'd really appreciate some assistance with this issue, myself and different colleagues have tried a few different approaches but nothing is giving consistent results. I'm also quite concerned to have found several posts mentioning an issue with transactions showing the message:
"The selected trace cannot be found"
As most of these posts have been closed with no clear resolution.
Thank you