Skip to content

Feature Request: Add autoCollectConsole option for @pagopa/azure-tracing #849

@giuseppedipinto

Description

@giuseppedipinto

We have integrated the @pagopa/azure-tracing module into io-ipatente project, which hosts 4 Next.js web apps on Azure App Services.

Before this integration, we used to automatically collect console.log, console.warn, and console.error by calling .setAutoCollectConsole(true, true) from the ApplicationInsights-JS library.
This was configured in our instrumentation file: https://github.com/pagopa/io-ipatente/blob/f2a237c8c816cd3502b80c86b0fc793e507d6b96/apps/licences/src/instrumentation.node.ts#L52.

With @pagopa/azure-tracing, it doesn't seem to be possible to achieve this same behavior.
Our team needs to be able to automatically collect console output to ensure we have comprehensive logging and monitoring.

Could this feature be added (It appears to be missing) to the @pagopa/azure-tracing package?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions