Get a hold of process-group-instance-id within dotnet code

Yes, using the file open interface you are able to retrieve the process group instance ID and host ID as soon as there is OneAgent running on the host. Also if you want the trace id / span id, you can fetch them using either using OneAgent SDK for .NET  or using OpenTelemetry.