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

RUM JS sends the events to APM server but some events are not stored #1496

Open
gabrielslach opened this issue May 13, 2024 · 3 comments
Open

Comments

@gabrielslach
Copy link

I can observe that RUM JS is able to send all the events I need to APM server.
However, some events are dropped (not reflected in Kibana).

For added information, I disabled the auto instrumentation in RUM so I only log necessary events.

Any suggestions on how to find the issue?

@devcorpio
Copy link
Contributor

devcorpio commented May 13, 2024

Hi @gabrielslach,

Thanks,
Alberto

@gabrielslach
Copy link
Author

gabrielslach commented May 15, 2024

Hello @devcorpio ,

RUM config
elasticApm.init({ serviceName: '', serviceVersion: '', instrument: false, logLevel: 'error', apmRequest: ({ method, headers, payload }) => { home.fetch(ENDPOINTS.ANALYTICS, { method, headers, body: payload, }); return false; }, });

Event Payload that is not reflected to kibana. I ommited some details like the tags.
{"metadata":{"service":{"name":"-","version":"-","agent":{"name":"rum-js","version":"5.16.0"},"language":{"name":"javascript"}}}} {"transaction":{"id":"fcae9fe9f55a8331","trace_id":"310c98878e554d3ce31f4abcd9c27170","name":"-","type":"custom","duration":2,"context":{"tags":{},"page":{"referer":"-","url":"-"}},"span_count":{"started":1},"sampled":true,"sample_rate":1}} {"span":{"id":"f01b15f048ce1da6","transaction_id":"fcae9fe9f55a8331","parent_id":"fcae9fe9f55a8331","trace_id":"310c98878e554d3ce31f4abcd9c27170","name":"","type":"custom","start":0,"duration":2,"sample_rate":1}}

Is there a similar issue? What might be the causes of the transactions not getting to kibana intermittently?

@devcorpio
Copy link
Contributor

devcorpio commented May 15, 2024

Hi @gabrielslach,

We are not aware of a similar issue.

A few questions:

  • is this problem just happening with your custom transaction?
  • if you go to Kibana APM services UI and filter by transaction type "custom" sometimes you don't see the sample, is my understanding correct?
  • have you checked in Kibana Discover to see if the transaction is there?
  • have you checked the traces-apm.rum- index? More info here
  • what version of the Elastic Stack are you using?
  • Are you using APM server standalone or APM integration? What version exactly?
    • if you use APM standalone you may want to check the logs to see if something is happening in the intake. See this
    • if you are using APM integration, please check this

Thanks,
Alberto

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

2 participants