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

[Monitor OpenTelemetry Exporter] Add Exception Handling to File Name for Telemetry Caching #28399

Merged
merged 7 commits into from Feb 2, 2024

Conversation

JacksonWeber
Copy link
Member

Packages impacted by this PR

@azure/monitor-opentelemetry-exporter

Issues associated with this PR

microsoft/ApplicationInsights-node.js#1230

Describe the problem that is addressed by this PR

Append the process ID to the file name created for holding disk cached telemetry. This should resolve the issue with multiple Azure Functions cores attempting to read/write/delete the same file when functions are scaled to use multiple cores.

Extended this logic outside of Azure Functions so that in any case where the SDK could be run concurrently we create distinct cache files.

Command used to generate this PR:**(Applicable only to SDK release request PRs)

Checklists

  • Added impacted package name to the issue description
  • Does this PR needs any fixes in the SDK Generator?** (If so, create an Issue in the Autorest/typescript repository and link it here)
  • Added a changelog (if necessary)

@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

Copy link
Member

@hectorhdzg hectorhdzg left a comment

Choose a reason for hiding this comment

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

LGTM

@JacksonWeber JacksonWeber changed the title [Monitor OpenTelemetry Exporter] Add Process ID to File Name for Telemetry Caching [Monitor OpenTelemetry Exporter] Add Exception Handling to File Name for Telemetry Caching Feb 2, 2024
@JacksonWeber JacksonWeber merged commit 0886249 into Azure:main Feb 2, 2024
13 checks passed
v-weiyding pushed a commit to v-weiyding/azure-sdk-for-js that referenced this pull request Feb 4, 2024
…for Telemetry Caching (Azure#28399)

### Packages impacted by this PR
@azure/monitor-opentelemetry-exporter

### Issues associated with this PR
microsoft/ApplicationInsights-node.js#1230

### Describe the problem that is addressed by this PR
Append the process ID to the file name created for holding disk cached
telemetry. This should resolve the issue with multiple Azure Functions
cores attempting to read/write/delete the same file when functions are
scaled to use multiple cores.

Extended this logic outside of Azure Functions so that in any case where
the SDK could be run concurrently we create distinct cache files.

### Command used to generate this PR:**_(Applicable only to SDK release
request PRs)_

### Checklists
- [x] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so,
create an Issue in the
[Autorest/typescript](https://github.com/Azure/autorest.typescript)
repository and link it here)_
- [x] Added a changelog (if necessary)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants