-
Notifications
You must be signed in to change notification settings - Fork 371
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
CloudTraceExtensions.TryAddGoogleTraceContextProvider is missing #6672
Comments
Thanks for the report - I'll have a look on Monday. It's possible that the message should just be changed to "Use CloudTraceExtensions.AddGoogleTrace instead" - that method definitely does exist. |
It's here Line 157 in ceb62cb
|
@amanda-tarafa Is it not in this beta? There is only 1 |
@EatonZ: That's a different class - the one Amanda pointed to before is in Google.Cloud.Diagnostics.AspNetCore |
@jskeet I figured it out now. There is a CloudTraceExtensions and a CloudTraceExtension class. |
Ah yes, sorry for the confusion. I'll update the Obsolete suggestion to include the full namespace and remove the s. The class in Common is new so I named it with the usual naming convention, with the s. The one in AspNetCore* it's older and changing the name now to include the s would be breaking. |
Changes in Google.Cloud.Diagnostics.AspNetCore version 4.3.0-beta02: - [Commit c682904](googleapis@c682904): - feat: Adds trace context information to error log entries. - Closes [issue 5360](googleapis#5360) - [Commit 1245ded](googleapis@1245ded): fix: Fully qualifies all alternative types/members for obsolete ones. Fixes [issue 6672](googleapis#6672) Changes in Google.Cloud.Diagnostics.AspNetCore3 version 4.3.0-beta02: - [Commit c682904](googleapis@c682904): - feat: Adds trace context information to error log entries. - Closes [issue 5360](googleapis#5360) - [Commit 1245ded](googleapis@1245ded): fix: Fully qualifies all alternative types/members for obsolete ones. Fixes [issue 6672](googleapis#6672) Packages in this release: - Release Google.Cloud.Diagnostics.AspNetCore version 4.3.0-beta02 - Release Google.Cloud.Diagnostics.AspNetCore3 version 4.3.0-beta02 - Release Google.Cloud.Diagnostics.Common version 4.3.0-beta02
Changes in Google.Cloud.Diagnostics.AspNetCore version 4.3.0-beta02: - [Commit c682904](googleapis@c682904): - feat: Adds trace context information to error log entries. - Closes [issue 5360](googleapis#5360) - [Commit 1245ded](googleapis@1245ded): fix: Fully qualifies all alternative types/members for obsolete ones. Fixes [issue 6672](googleapis#6672) Changes in Google.Cloud.Diagnostics.AspNetCore3 version 4.3.0-beta02: - [Commit c682904](googleapis@c682904): - feat: Adds trace context information to error log entries. - Closes [issue 5360](googleapis#5360) - [Commit 1245ded](googleapis@1245ded): fix: Fully qualifies all alternative types/members for obsolete ones. Fixes [issue 6672](googleapis#6672) Packages in this release: - Release Google.Cloud.Diagnostics.AspNetCore version 4.3.0-beta02 - Release Google.Cloud.Diagnostics.AspNetCore3 version 4.3.0-beta02 - Release Google.Cloud.Diagnostics.Common version 4.3.0-beta02
Changes in Google.Cloud.Diagnostics.AspNetCore version 4.3.0-beta02: - [Commit c682904](c682904): - feat: Adds trace context information to error log entries. - Closes [issue 5360](#5360) - [Commit 1245ded](1245ded): fix: Fully qualifies all alternative types/members for obsolete ones. Fixes [issue 6672](#6672) Changes in Google.Cloud.Diagnostics.AspNetCore3 version 4.3.0-beta02: - [Commit c682904](c682904): - feat: Adds trace context information to error log entries. - Closes [issue 5360](#5360) - [Commit 1245ded](1245ded): fix: Fully qualifies all alternative types/members for obsolete ones. Fixes [issue 6672](#6672) Packages in this release: - Release Google.Cloud.Diagnostics.AspNetCore version 4.3.0-beta02 - Release Google.Cloud.Diagnostics.AspNetCore3 version 4.3.0-beta02 - Release Google.Cloud.Diagnostics.Common version 4.3.0-beta02
Hi,
I upgraded to Google.Cloud.Diagnostics.AspNetCore3 4.3.0-beta01 and have had to make a few changes to my code to accommodate various obsoletions and changes.
I have this code in my
ConfigureServices
method:services.AddSingleton<ITraceContext>(new GoogleTraceProvider());
In the beta this no longer compiles. It tells me to: "Use CloudTraceExtensions.TryAddGoogleTraceContextProvider instead."
That method does not seem to exist.
The text was updated successfully, but these errors were encountered: