Skip to content

Add support to define directory for offline logging #4215

@HonzaV

Description

@HonzaV

Is your feature request related to a problem? Please describe.
I need to store offline logs in case of AppInsights outage in persistent volume. Current implementation uses path stored in java.io.tmpdir, but this directory can be used by other frameworks, therefore it is not good idea to mount it to persistent volume.

Docs: https://learn.microsoft.com/en-us/azure/azure-monitor/app/opentelemetry-configuration?tabs=java#offline-storage-and-automatic-retries

Describe the solution you would like
Environment variable or field in applicationinsights.json to set directory for temp offline logs for applicaiton-insights-runtime-attach.json

Describe alternatives you have considered
I did not find any solution. Maybe usage of other deps, which enable us to define the log path?

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