amplitude / Amplitude-JavaScript

JavaScript SDK for Amplitude
MIT License
314 stars 132 forks source link

Modified apiEndpoint breaks Amplitude Instrumentation Explorer #310

Open Naismith opened 3 years ago

Naismith commented 3 years ago

Expected Behavior

Expect events to be tracked using the new apiEndpoint provided

Current Behavior

No events are shown in the plugin

Possible Solution

Allow JS SDK or Plugin to change apiEndpoint for watching the talks

Steps to Reproduce

  1. init client with a custom apiEndpoint in config
  2. open plugin in chrome to no events

Environment

jooohhn commented 3 years ago

Thanks for the report, will look into this

kelvin-lu commented 3 years ago

@Naismith are you using a custom endpoint or api2.amplitude.com? Version 0.1.2 of the instrumentation explorer should be able to listen to events on api2.amplitude.com, but we can keep this open to consider more generic api endpoints.

Naismith commented 3 years ago

@Naismith are you using a custom endpoint or api2.amplitude.com? Version 0.1.2 of the instrumentation explorer should be able to listen to events on api2.amplitude.com, but we can keep this open to consider more generic api endpoints.

I am using a custom endpoint

Naismith commented 3 years ago

@jooohhn and @kelvin-lu has there been any progress on this? Just checking in.

kelvin-lu commented 3 years ago

Hey @Naismith, apologies for the lack of communication here but we're tracking this issue internally as well - we're hoping to have updates this week or in the coming week so that the instrumentation explorer can be configured to other endpoints!

ivadimko commented 2 years ago

Hi @Naismith , are there any updates on this issue? It still doesn't work with the latest version of amplitude-js (8.14.0) and amplitude instrumentation explorer (0.3.3)

liuyang1520 commented 1 year ago

Is this SDK working fine with the custom endpoint?

This sounds like an issue for the event explorer, I found that we have a list of api endpoints hard-coded there to listen to with webRequest API. So I don't think custom endpoint is supported with the current event explorer yet, we can probably support custom endpoint with the webRequest API too.