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

Unable to ingest logs, traces from ANDROID, IOS App to Azure. #326

Closed
manashbob opened this issue Apr 26, 2024 · 8 comments
Closed

Unable to ingest logs, traces from ANDROID, IOS App to Azure. #326

manashbob opened this issue Apr 26, 2024 · 8 comments

Comments

@manashbob
Copy link

We followed this to setup Opentelemetry in ANDROID and IOS app, but unable to ingest logs, traces to Azure Application Insights or to Azure Log Analytics Workspace. Is there any proper document or another code repo which we can refer to ingest logs, traces from Android and IOS apps to Azure?

@LikeTheSalad
Copy link
Contributor

Hi @manashbob

Please can you provide more details on what guide you followed to set up Opentelemetry within your Android app?

At the moment OTel Android doesn't configure any exporter for logs. It's something that it should do in the future when it becomes stable, but for now, there would be some work needed to make it work. This gist should help give more info on how to do so in with the current state of OTel Android.

@manashbob
Copy link
Author

Thank you @LikeTheSalad. My Dev Team followed https://github.com/open-telemetry/opentelemetry-android
There is no way even to enable trace from Android using OTEL SDK?

@LikeTheSalad
Copy link
Contributor

There is no way even to enable trace from Android using OTEL SDK?

Using both, the OTel Java SDK directly and also the Android SDK, it's possible to do tracing, logging, and sending metrics. Although at the moment it requires a fair amount of manual configuration to make it work. That's one of the reasons why the OTel Android project exists, to make the setup more straightforward for Android apps. However, OTel Android hasn't reached that level of maturity yet, so in the meantime, the options that you might want to take a look at are the following:

  • Using the OTel Java SDK directly by following its manual instrumentation guide.
  • Using OTel Android while manually setting the signal processors/exporters as it was done in this gist. This option is quite similar to the first one right now, in the sense that you'd need to set up a lot of configs manually, however, there's the benefit that you'd get the features listed here out of the box.

@trask
Copy link
Member

trask commented May 1, 2024

Hi @manashbob, are you using the Azure Monitor OpenTelemetry Exporter, or another way to send the telemetry to Azure Monitor? Thanks

@manashbob
Copy link
Author

Hi @trask, we tried this but no luck. Not sure what my Dev Team done integrating Opentelemetry SDK, they are even not able load libraries .

// OpenTelemetry API
implementation 'io.opentelemetry:opentelemetry-api:1.35.0'
// OpenTelemetry SDK
implementation 'io.opentelemetry:opentelemetry-sdk:1.35.0'
// Exporter for sending data to Azure Monitor
implementation 'com.azure:azure-monitor-opentelemetry-exporter:1.0.0-beta.21'

If you have any specific document link which can help us setting of OTEL SDK and integrate Azure monitor, please share.

Thanks a lot!

@mattmccleary
Copy link

mattmccleary commented May 1, 2024

Hi @manashbob - there's no official documentation or support for this from the Azure side at this time, but we'd be happy to meet anyway to better understand what you want to achieve and see if we have any ideas for how to unblock you. Feel free to send an email to [email protected].

@manashbob
Copy link
Author

Hi @mattmccleary , Thank you.

We are planning to retrieve traces, logs from Android and IOS app and forward it to Azure Application Insight or Azure Log Analytics Workspace, we referred
https://github.com/open-telemetry/opentelemetry-android and
https://www.alibabacloud.com/help/en/sls/user-guide/import-trace-data-from-android-apps-to-log-service-1?spm=a2c63.p38356.0.0.6c14634fbINu5f,
but no luck.
Even they didn’t see any error in app, but nothing captured in Application insight.

@trask
Copy link
Member

trask commented May 30, 2024

hi @manashbob, I'd recommend opening this issue in https://github.com/Azure/azure-sdk-for-java (for the azure-monitor-opentelemetry-exporter component)

unfortunately it looks like currently the azure-monitor-opentelemetry-exporter uses Java APIs that are not supported by Android, and so some work will need to be done in order to support Android

@trask trask closed this as completed May 30, 2024
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

No branches or pull requests

4 participants