cloudflare / workers-sdk

⛅️ Home to Wrangler, the CLI for Cloudflare Workers®
https://developers.cloudflare.com/workers/
Apache License 2.0
2.6k stars 674 forks source link

[Miniflare] Support analytics engine #4383

Closed mrbbot closed 3 weeks ago

mrbbot commented 2 years ago

https://blog.cloudflare.com/workers-analytics-engine/

llago-atlassian commented 1 year ago

Hey, I noticed there hasn't been a lot of progress in that PR lately. Are there any plans on prioritising analytics engine miniflare support anytime soon?

Niek commented 5 months ago

Any update on this?

brucx commented 2 months ago

Any update or any workaround?

minderov commented 2 months ago

@rohinlohe would it be possible to at least prevent the calls to Analytics Engine from throwing an exception?

In our use-case we don't need to fake the full real behaviour of Analytics Engine when developing locally. We just want to stop the exceptions to make the logs less noisy when developing locally. I would assume it's the same for most products.

brucx commented 2 months ago

I use the following methods(?.) to avoid errors during the development process:

  env.WEATHER?.writeDataPoint({
    'blobs': ["Seattle", "USA", "pro_sensor_9000"], // City, State
    'doubles': [25, 0.5],
    'indexes': ["a3cd45"]
  });