Skip to content

Conversation

@alanwest
Copy link
Member

No description provided.

@alanwest alanwest requested a review from a team February 10, 2023 21:37
[IServiceCollection](https://learn.microsoft.com/dotnet/api/microsoft.extensions.dependencyinjection.iservicecollection).

These methods were marked obsolete and later removed. You should migrate your
code to the new `AddOpenTelemetry` method documented above.
Copy link
Member

Choose a reason for hiding this comment

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

i wonder if we should give an example startup code for this? or the PR which did this for our example one? or maybe link to old and new version of our example app?

Copy link
Member

Choose a reason for hiding this comment

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

We could link to #4071 where there are some migration steps.

Copy link
Member Author

Choose a reason for hiding this comment

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

We could link to #4071 where there are some migration steps.

oops didn't see this comment before I updated it. I just added links to the old (1.3.2 version) and new (main). What do you all think?


## Extension method reference

### Current OpenTelemetry SDK v1.4.0 and newer extensions
Copy link
Member

Choose a reason for hiding this comment

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

consider a link to the example app, which shows this in action.

Copy link
Member

Choose a reason for hiding this comment

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

There is a usage section below just not shown on the diff unless you expand it

Copy link
Member

Choose a reason for hiding this comment

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

Or if you are saying in addition to that a link would be good, find by me 😄

Copy link
Member

Choose a reason for hiding this comment

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

yea on top of the basic usage shown here.

Copy link
Member

Choose a reason for hiding this comment

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

the example, if followed correctly, will help avoid mistakes like adding ActivitySource to DI etc. So good to link from this

@cijothomas cijothomas merged commit 9892311 into open-telemetry:main Feb 10, 2023
@alanwest alanwest deleted the alanwest/extensions-readme branch February 11, 2023 00:17
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.

3 participants