Skip to content
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

Check if current trace is null in ClientTrace.Error #227

Merged
merged 1 commit into from
Jan 21, 2019
Merged

Check if current trace is null in ClientTrace.Error #227

merged 1 commit into from
Jan 21, 2019

Conversation

akurin
Copy link

@akurin akurin commented Jan 21, 2019

TracingHandler throws NullReferenceException when current trace is null, as in the example below.

static async Task Main(string[] args)
{
    using (var client = new HttpClient(new TracingHandler("service-name")))
    {
        await client.GetAsync("http://non-existent-host"); // throws NullReferenceException
    }
}

@devinsba devinsba requested a review from fedj January 21, 2019 20:45
Copy link
Collaborator

@fedj fedj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the change @akurin

@fedj fedj merged commit e2f656e into openzipkin:master Jan 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants