elastic / elastic/apm-agent-android
not receiving Data at elastic Side
- Dominant language
- Kotlin
- Stars
- 43
- Forks
- 22
- Avg merge
- 2d 1h
- Merged PRs (30d)
- 26
Description
Dears,
we are trying to instrument flutter application using andorid sdk native agent from Elastic we have followed below documentation
https://www.elastic.co/observability-labs/blog/monitoring-android-applications-apm
there is no data appeared on elastic side despite below :
on Android Side we are receiving below warning:
D/ELASTIC_AGENT(19073): Ignoring central config sync request
I/ELASTIC_AGENT(19073): Central config returned max age is null
I/ELASTIC_AGENT(19073): Scheduling next central config poll
D/ELASTIC_AGENT(19073): Next central config poll in 60 seconds
D/ELASTIC_AGENT(19073): Starting span: 'SdkSpan{traceId=e08badad1310d7d54bfb90c72ddd7a82, spanId=a87fee2a479b8368, parentSpanContext=ImmutableSpanContext{traceId=e08badad1310d7d54bfb90c72ddd7a82, spanId=0de1adc07d3f86e1, traceFlags=01, traceState=ArrayBasedTraceState{entries=[]}, remote=false, valid=true}, name=Paused, kind=INTERNAL, attributes=AttributesMap{data={network.carrier.icc=eg, [session.id](http://session.id/)=802fa057-7ba2-4c1f-9146-dcc37aecdf4e, network.carrier.mcc=602, network.connection.type=wifi, type=mobile, [network.carrier.name](http://network.carrier.name/)=Orange EG, network.carrier.mnc=01, fragmentName=FlutterFragment}, capacity=128, totalAddedValues=9}, status=ImmutableStatusData{statusCode=OK, description=}, totalRecordedEvents=0, totalRecordedLinks=0, startEpochNanos=1716282098617757968, endEpochNanos=0}', within context: '{opentelemetry-trace-span-key=SdkSpan{traceId=e08badad1310d7d54bfb90c72ddd7a82, spanId=0de1adc07d3f86e1, parentSpanContext=ImmutableSpanContext{traceId=00000000000000000000000000000000, spanId=0000000000000000, traceFlags=00, traceState=ArrayBasedTraceState{entries=[]}, remote=false, valid=false}, name=Paused, kind=INTERNAL, attributes=AttributesMap{data={network.carrier.icc=eg, activityName=MainActivity, [session.id](http://session.id/)=802fa057-7ba2-4c1f-9146-dcc37aecdf4e, network.carrier.mcc=602, network.connection.type=wifi, type=mobile, [network.carrier.name](http://network.carrier.name/)=Orange EG, network.carrier.mnc=01, [screen.name](http://screen.name/)=MainActivity}, capacity=128, totalAddedValues=11}, status=ImmutableStatusData{statusCode=OK, description=}, totalRecordedEvents=2, totalRecordedLinks=0, startEpochNanos=1716282098614000000, endEpochNanos=0}}'
and on Elastic APM fleet Server i recieve below :
./elastic-agent-20240429-336.ndjson:{"log.level":"info","@timestamp":"2024-04-29T13:17:36.477Z","message":"request ok","component":{"binary":"apm-server","dataset":"elastic_
agent.apm_server","id":"apm-default","type":"apm"},"log":{"source":"apm-default"},"url.original":"/","http.request.method":"POST","user_agent.original":"OTel-OTLP-Exporter-J
ava/1.34.1","http.request.id":"f4c43c38-86f1-4750-928e-cfb726ab38ea","log.origin":{"file.line":62,"file.name":"middleware/log_middleware.go","function":"[github.com/elastic/a](http://github.com/elastic/a)
pm-server/internal/beater/api.apmMiddleware.LogMiddleware.func1.1"},"log.logger":"request","source.address":"","event.duration":66983,"http.request.body.bytes":
804,"http.response.status_code":200,"ecs.version":"1.6.0","service.name":"apm-server","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-05-21T09:58:24.366Z","message":"not modified","component":{"binary":"apm-server","dataset":"elastic_agent.apm_server","id":"apm-default","type":"apm"},"log":{"source":"apm-default"},"url.original":"/config/v1/agents?service.name=####&service.environment=######","log.origin":{"file.line":62,"file.name":"middleware/log_middleware.go","function":"github.com/elastic/apm-server/internal/beater/api.apmMiddleware.LogMiddleware.func1.1"},"service.name":"apm-server","http.request.body.bytes":0,"http.response.status_code":304,"user_agent.original":"Dalvik/2.1.0 (Linux; U; Android 14; SM-S918B Build/UP1A.231005.007)","http.request.id":"13f77e5b-4f72-44b1-9c9a-dc23757123dd","event.duration":61349,"log.logger":"request","http.request.method":"GET","source.address":"197.38.152.50","ecs.version":"1.6.0","ecs.version":"1.6.0"}
Despite that no data shown in elastic or kibana and service not appeared
Contributor guide
Assessment
This issue has not been assessed yet.