https://discord.cloudflare.com logo
Join Discord
Powered by
# workers-discussions
  • g

    Greg Brimble | Cloudflare Pages

    01/16/2021, 11:03 PM
    Enjoy haha
  • m

    Matt

    01/17/2021, 1:01 AM
    Is the source repo for @cloudflare/worker-sentry lurking anywhere?
  • m

    Matt

    01/17/2021, 1:01 AM
    The package would be super useful if it didn't rely on having to use wrangler vars šŸ˜›
  • g

    ginkoid

    01/17/2021, 1:03 AM
    its short enough you could just copy paste https://cdn.jsdelivr.net/npm/@cloudflare/worker-sentry@1.0.0/index.js
  • g

    Greg Brimble | Cloudflare Pages

    01/17/2021, 1:04 AM
    Don't know about that particular package, but there is this: https://github.com/robertcepa/toucan-js
  • a

    advaith

    01/17/2021, 1:04 AM
    looks like its a wrapper of that
  • g

    Greg Brimble | Cloudflare Pages

    01/17/2021, 1:04 AM
    @cloudflare/worker-sentry doesn't seem to be listed anywhere on here https://cloudflare.github.io/
  • g

    Greg Brimble | Cloudflare Pages

    01/17/2021, 1:05 AM
    Sneaky haha
  • m

    Matt

    01/17/2021, 1:05 AM
    Yah, @cloudflare/worker-sentry is a wrapper around it
  • m

    Matt

    01/17/2021, 1:06 AM
    I've just yoinked the source and modified, but would be good to update the original to take the env stuff in as an obj
  • k

    kristian

    01/17/2021, 2:36 AM
    IT WORKED
  • k

    kristian

    01/17/2021, 2:36 AM
    hype
  • t

    TheChosenOne

    01/17/2021, 7:08 AM
    Hello!
  • t

    TheChosenOne

    01/17/2021, 7:10 AM
    Always wanted to ask if Cloudflare ever had plans of moving into email type business. Would love some email forwarding with Cloudflare registrar
  • c

    cproetti

    01/17/2021, 7:11 AM
    Interested to see if Cloudflare will open the ports for workers to be able to handle emails
  • d

    Deleted User

    01/17/2021, 10:42 AM
    hi
  • a

    advaith

    01/17/2021, 10:43 AM
    hi
  • c

    cproetti

    01/17/2021, 12:08 PM
    Anyone know what these spikes are when all the requests require basically the same workload? Can somebody shed light on how these CPU time are calculated, and why might requests coming from one country take significantly longer in CPU time than requests coming from another country? https://imgur.com/a/pjXFWZe
  • c

    cproetti

    01/17/2021, 12:16 PM
    If some users in a specific geographic region have higher latency to CF and slower connnection speeds (meaning they are connected longer), will that require more CPU time? Or is the whole request returned by the worker and handed off to a buffer until the users connection can finish transferring the payload (meaning no additional CPU time regardless of their latency of connection speed)?
  • i

    itsmatteomanf

    01/17/2021, 1:23 PM
    Those are most likely cold starts.
  • c

    cproetti

    01/17/2021, 1:55 PM
    And what about why requests from on country (specifically China) have a significantly higher CPU time than requests from other countries (Singapore, USA, etc...)
  • i

    itsmatteomanf

    01/17/2021, 2:33 PM
    Higher latency is that the requests from Chine go outside of China, higher CPU I have no clue. Probably less average bandwith (with higher latency) hence more time to process the whole thing?
  • c

    cproetti

    01/17/2021, 3:00 PM
    Hence why im asking if somebody can shed some light on how the CPU time is measured. For example with measuring CPU time in PHP it only counts the time executing your script, none of the time spent by apache up until the point of your script execution time is counted, and no time spent by apache after the buffer the closed is counted. So i’m wondering specifically how much of the chain is counted as CPU time in Cloudflare Workers
  • e

    eidam | SuperSaaS

    01/17/2021, 3:07 PM
    That is a good question I would also love to know answer to šŸ˜„ However never ran into issues even with occasional >10ms or >50ms (depends on the plan)
  • c

    cproetti

    01/17/2021, 3:11 PM
    I’m not running in an enterprise plan so my users in China (me included) will be getting served by a node outside. And considering these are the biggest user group who seems to have a large discrepancy in CPU time compared to the rest if the world users then I assume latency & connection speed have a factor in the way workers CPU time is calculated.
  • c

    cproetti

    01/17/2021, 3:12 PM
    The difference can be from half a millisecond with USA users to being 10 to 20 milliseconds for China users.
  • c

    cproetti

    01/17/2021, 3:13 PM
    Fluctuations on day and time. I sometimes see my speeds to cloudflare go from gigabit/sec to less than a megabit/sec
  • c

    cproetti

    01/17/2021, 3:14 PM
    I haven’t seen anything in the 50ms as you say. Thats pretty huge
  • e

    eidam | SuperSaaS

    01/17/2021, 3:19 PM
    Afaik even with Enterprise plan you would need to opt-in for Cloudflare in China network, as there is the need of ICP license first, in order to be served from China mainland. I guess it will be connected to the fact the requests are just taking longer (as the nearest cloudflare pop is outside of china) and the worker waits - not an expert, just rough guess. But I would love to see/learn more details on it šŸ‘
  • c

    cproetti

    01/17/2021, 3:22 PM
    I’m aware. I run a dev business in China. Hopefully someone at Cloudflare will write a blog about where along the chain the CPU time calculation starts and stops.
1...565758...2509Latest