USING: .NET Core 2.2 on linux UST tracing / lttng.
I am trying to only listen for Custom EventSource events (and some other events I am specifically interested in but they do not factor into this discussion) I have generated in my application. I am sending these messages off box to an lttng-relayd daemon and I am looking to keep the amount of event data somewhat in my control. Turning on the EventSource provider generates a great deal of information I don't want or need and it is flooding my channel on occasion.
lttng enable-event --userspace --tracepoint DotNETRuntime:EventSource
When I look at the data this is pushing to relayd I am seeing all sorts of built in events I would like to simply avoid sampling at all:
=== DotNETRuntime:EventSource__System.Diagnostics.Eventing.FrameworkEventSource - ThreadTransferSend:11542 - ThreadTransferReceive:6480 - ThreadPoolEnqueueWork:21437 - ThreadPoolDequeueWork:21437 === DotNETRuntime:EventSource__Microsoft-System-Net-Sockets - Enter:22771 - Info:27463 - Exit:20145 - Connected:1 - Accepted:1 === DotNETRuntime:EventSource__Microsoft-System-Net-NameResolution - Enter:41924 - Info:41922 - Exit:27950
These are all produced by .NET and I really have little interest in capturing these events, only my application specific set of events.
I am trying to figure out the --filter syntax I might use to filter for just my set of custom events:
--filter='$app.EventSourceName==MyEventSourceName'
The examples I can find online references either static events:
$ctx.procname=='dotnet'
Which is not that useful.
Or dynamic events using $app, but the syntax I need to use to filter by EventSourceName is not very clear.
Is there anyone who has experience with this aspect of lttng who might