-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[API Proposal]: Track Exceptions in flight (information about the state that existed for the thread when the exception occurred) #98878
Comments
Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas Issue DetailsBackground and motivationCurrently, Marshal.GetExceptionPointers is not supported in native AOT. See the environment control flag in runtime:
See open-telemetry/opentelemetry-dotnet#5374 (comment) on how this could be achieved. API ProposalCurrently, getting in-flight exception is not supported in native AOT: runtime/src/coreclr/vm/comutilnative.cpp Line 394 in b80048e
I propose to enable this feature in native AOT: FCIMPL0(EXCEPTION_POINTERS*, ExceptionNative::GetExceptionPointers)
{
FCALL_CONTRACT;
EXCEPTION_POINTERS* retVal = NULL;
Thread *pThread = GetThread();
if (pThread->IsExceptionInProgress())
{
retVal = pThread->GetExceptionState()->GetExceptionPointers();
}
return retVal;
}
FCIMPLEND API UsageSee this issue: open-telemetry/opentelemetry-dotnet#5358 Alternative DesignsNo response RisksNo response
|
The Could you please describe what you would like to actually achieve in your scenario? We can then work on the design on the right API that is both reliable and not unnecessarily compilated. |
Hi @jkotas, automatically detect exceptions and set Activity status is what we want to achieve. |
I am not able to figure out the desired expected behavior from this issue and from the code. (I know what your current code does, but I do not think that it is the behavior you actually want.) Could you please describe the desired behavior? When is |
@reyang or @CodeBlanch could you give us some details on what semantics are needed for tracking exception in flight in OpenTelemetry? This is in reference to open-telemetry/opentelemetry-dotnet#1858. We see |
Duplicate of #89724 |
Background and motivation
Currently, Marshal.GetExceptionPointers is not supported in native AOT.
See the environment control flag in runtime:
runtime/src/libraries/Common/tests/TestUtilities/System/PlatformDetection.cs
Line 97 in b80048e
See open-telemetry/opentelemetry-dotnet#5374 (comment) on how this could be achieved.
API Proposal
Currently, getting in-flight exception is not supported in native AOT:
runtime/src/coreclr/vm/comutilnative.cpp
Line 394 in b80048e
I propose to enable this feature in native AOT:
API Usage
See this issue: open-telemetry/opentelemetry-dotnet#5358
Alternative Designs
No response
Risks
No response
The text was updated successfully, but these errors were encountered: