ApplicationInsights-node.js icon indicating copy to clipboard operation
ApplicationInsights-node.js copied to clipboard

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

Open skhilliard opened this issue 1 year ago • 5 comments

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?

skhilliard avatar May 03 '24 18:05 skhilliard

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.

JacksonWeber avatar May 03 '24 19:05 JacksonWeber

@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

skhilliard avatar May 03 '24 19:05 skhilliard

@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.

JacksonWeber avatar May 03 '24 19:05 JacksonWeber

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

skhilliard avatar May 03 '24 19:05 skhilliard

@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.

JacksonWeber avatar May 03 '24 19:05 JacksonWeber

This Issue will be closed in 30 days. Please remove the "Stale" label or comment to avoid closure with no action.

github-actions[bot] avatar Apr 04 '25 07:04 github-actions[bot]