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

[AppInsights] updating dependency creation #1039

Merged
merged 1 commit into from
Sep 19, 2022
Merged

Conversation

brettsam
Copy link
Member

@brettsam brettsam commented Sep 15, 2022

Fixes #998

Using App Insights StartTelemetry to create dependencies for proper hierarchy. This method does a bunch of work to check Activity trace ids and properly set up the operation and parent ids on telemetry.

Original example of an isolated function calling into Table storage:
image

After this change (note how each entry is a child of the other):
image

</PropertyGroup>

<Import Project="..\..\build\Common.props" />

<ItemGroup>
<PackageReference Include="Microsoft.Azure.Functions.Worker.Core" Version="1.7.0-preview1" />
Copy link
Member

Choose a reason for hiding this comment

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

Curious to know why we switched to package reference? Is it to lock this version of AI package to specific version of Worker.Core package?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, there's a small tweak in preview1 that we need for this package to work... but there's no need for me to keep revving that one now that I don't need additional changes. It was mostly a local dev improvement to lock this to a published package.

This will eventually go away and back to a proj reference once this is ready for GA.

@brettsam
Copy link
Member Author

/azp run

@azure-pipelines
Copy link

You have several pipelines (over 10) configured to build pull requests in this repository. Specify which pipelines you would like to run by using /azp run [pipelines] command. You can specify multiple pipelines using a comma separated list.

@brettsam brettsam force-pushed the brettsam/appinsights branch from da56723 to d79f3b8 Compare September 16, 2022 19:42
@brettsam
Copy link
Member Author

/check-enforcer evaluate

@brettsam brettsam merged commit 8942aba into main Sep 19, 2022
@brettsam brettsam deleted the brettsam/appinsights branch September 19, 2022 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dependency not tracking correctly in Application Insights
4 participants