-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[APM] Added Android Agent name and icon #136598
Conversation
Pinging @elastic/apm-ui (Team:apm) |
…-ref HEAD~1..HEAD --fix'
export function isRumAgentName( | ||
agentName?: string | ||
): agentName is 'js-base' | 'rum-js' | 'opentelemetry/webjs' { | ||
return RUM_AGENT_NAMES.includes(agentName! as AgentName); | ||
} | ||
|
||
export function isMobileAgentName( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't seem to be used
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @gbamparop !
I pushed a commit now in which I replaced the usage of isOSAgentName
with isMobileAgentName
in all the places in the APM UI. Since the Android agent should be treated in the same way as the iOS agent.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is not clear to me is:
- is the method
normalizeAgentName
used anywhere? I couldn't find anything - why did we define
opentelemetry/swift
to be an iOS agent / mobile agent. We might need to change this as well. Because if a MacOS client application is instrumented with the OpenTelemetry SDK, this would be recognized and treated as a mobile agent. I don't think this is what we want. Do have any concerns with changing this as well (so that onlyiOS/swift
orios/swift
would be recognized as iOSAgent / mobile agent)? - Why do we hide the dependencies view for the
iOSAgent
/ mobile agent?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for updating this!
- is the method
normalizeAgentName
used anywhere? I couldn't find anything
It seems to have been introduced by #102346 but it's not used
- why did we define
opentelemetry/swift
It makes sense, maybe we hadn't considered that at the time (see #103485 (comment))
- Why do we hide the dependencies view for the
iOSAgent
/ mobile agent?
It was raised as an issue #108510
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @gbamparop
- is the method
normalizeAgentName
used anywhere? I couldn't find anythingIt seems to have been introduced by #102346 but it's not used
OK, I deleted it and simplified the code there.
- why did we define
opentelemetry/swift
It makes sense, maybe we hadn't considered that at the time
👍 I reverted it to be just iOS/swift
/ ios/swift
- Why do we hide the dependencies view for the
iOSAgent
/ mobile agent?It was raised as an issue #108510
I'll keep it as is for now and continue the discussion on this aspect in a separate thread.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, do you think there's another field that we could use to find if an app instrumented with opentelemetry/swift
is on iOS?
…r new agent name functions.
…-ref HEAD~1..HEAD --fix'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for picking this up!
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]Module Count
Async chunks
History
To update your PR or re-run it, just comment with: |
Summary
isIOSAgentName
withisMobileAgentName
in the APM UIFor maintainers