Im having some issues mapping with the status erro...
# support
m
Im having some issues mapping with the status error / ok ( see screenshot ) Any idea which attribute I need to set? The status code I can set manually that works and the exception is thrown when I run the RecordException. However the status is not set? Im using .net and I set it on the activity using
Copy code
ActivityStatusCode
        Unset = 0,

        /// <summary>
        /// Status code indicating the operation has been validated and completed successfully.
        /// </summary>
        Ok = 1,

        /// <summary>
        /// Status code indicating an error is encountered during the operation.
        /// </summary>
        Error = 2
Copy code
private void SetStatusAndRecordException(Activity activity, Exception exception)
{
    activity.SetStatus(ActivityStatusCode.Error, exception.Message);

    if (this.options.RecordException)
    { 
        activity.RecordException(exception);
    }
}
Any idea?
s
Your point is not clear. Is status code not being reflected in ui even though you set it in your code?
m
Exactly, the “error” / “ok” is never set, despite even explicitly setting it
s
This is unexpected. Please open an issue here https://github.com/SigNoz/signoz. A simple reproducible example would be appreciated