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

_APPRESOURCEPREVIEW_ appearing in metrics when upgrading from 2.x to 3.0.1 #1322

Open
skhilliard opened this issue May 3, 2024 · 5 comments
Labels

Comments

@skhilliard
Copy link

I am upgrading from 2.x to 3.0.1 and am seeing these odd entries in metrics...what are they?

image

...also...would it be right to assume that the npm package applicationinsights-native-metrics is not supported with 3.x? What would be a suitable substitute?

@JacksonWeber
Copy link
Contributor

Hi @skhilliard those metrics exist as part of the transition to OpenTelemetry under the hood for application insights. They're related to the OpenTelemetry concept of a Resource. The reason for the APPRESOURCEPREVIEW naming is simply that AppInsights ingestion renames the metric if the resources table has not been established yet.

@skhilliard
Copy link
Author

@JacksonWeber I see....is my assumption correct that the applicationinsights-native-metrics package is not supported with 3.x? Using that package gives us these metrics...

image

@JacksonWeber
Copy link
Contributor

@skhilliard Apologies, missed that question, that's correct, the no longer supported properties are documented in this table https://github.com/microsoft/ApplicationInsights-node.js?tab=readme-ov-file#applicationinsights-3x-sdk-unsupported-properties.

@skhilliard
Copy link
Author

@JacksonWeber Thanks for confirmation....will there be any alternatives for 3.x to gather these?

@JacksonWeber
Copy link
Contributor

@skhilliard There may be in the future, but for now, if you rely on these native metrics, I'd suggest continuing on the 2.X SDK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants