Skip to content

Check if environment is supported by serverless compat#22

Merged
duncanpharvey merged 3 commits intomainfrom
duncan-harvey/check-environment
Mar 27, 2025
Merged

Check if environment is supported by serverless compat#22
duncanpharvey merged 3 commits intomainfrom
duncan-harvey/check-environment

Conversation

@duncanpharvey
Copy link
Copy Markdown
Collaborator

@duncanpharvey duncanpharvey commented Mar 26, 2025

What does this PR do?

Check if the Serverless Compatibility Layer is attempting to be started in one of the below environments.

  • Azure Function
  • Azure Spring App
  • Google Cloud Function (gen1)
  • Google Cloud Function (gen2)

Motivation

Only allow Serverless Compat to run in explicitly supported environments.

https://datadoghq.atlassian.net/browse/SVLS-6448

Additional Notes

Describe how to test/QA your changes

Deployed to self monitoring for each environment and confirmed that the jar starts the Serverless Compat process.

@duncanpharvey duncanpharvey marked this pull request as ready for review March 26, 2025 18:12
Comment thread src/main/java/com/datadog/ServerlessCompatAgent.java Outdated
Copy link
Copy Markdown

@nina9753 nina9753 left a comment

Choose a reason for hiding this comment

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

thanks for the update

@duncanpharvey duncanpharvey merged commit 94c8d79 into main Mar 27, 2025
@duncanpharvey duncanpharvey deleted the duncan-harvey/check-environment branch March 27, 2025 20:56
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.

3 participants