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

Sdk name improvements #1551

Merged
merged 1 commit into from
Mar 12, 2021
Merged

Sdk name improvements #1551

merged 1 commit into from
Mar 12, 2021

Conversation

trask
Copy link
Member

@trask trask commented Mar 12, 2021

Two sdk name improvements:

  • use f*r_java when running in Azure Functions on App Services (instead of awr_java)
  • use s*r_java when running in Spring Cloud with springcloud.codeless marker file

(and removed the restriction on using json files with attach, since spring cloud uses one)

Copy link
Contributor

@heyams heyams left a comment

Choose a reason for hiding this comment

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

👍

@@ -46,47 +44,40 @@ private DiagnosticsHelper() { }

public static void setAgentJarFile(Path agentPath) {
if (Files.exists(agentPath.resolveSibling("appsvc.codeless"))) {
appServiceCodeless = true;
appSvcAttachForLoggingPurposes = true;
if ("java".equals(System.getenv("FUNCTIONS_WORKER_RUNTIME"))) {
Copy link
Contributor

Choose a reason for hiding this comment

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

👍 for the dedicated plan, azure functions is using app service's prefix. this will fix it :)

@trask trask merged commit c85fa18 into master Mar 12, 2021
@trask trask deleted the trask/sdk-name branch March 12, 2021 19:20
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.

2 participants