autometrics-dev / autometrics-ts

Easily add metrics to your system – and actually understand them using automatically customized Prometheus queries

Home Page:https://autometrics.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸ› Supabase Edge Functions: My filesystem details are leaked by the `module` label when using autometrics-ts with Supabase Edge Functions

brettimus opened this issue Β· comments

Environment information

Supabase Edge Functions (prod deployment)

What happened?

I deployed an edge function with Supabase, and configured autometrics-ts to work with a push gateway.

The module label contained the filesystem path on my local machine to the script containing the edge function.

function_calls_duration_sum{caller="",function="getRabbit",module="file:///Users/brettbeutell/fiber/to-err-is-panda/supabase/functions/rabbit/index.ts"} 0.004

Interestingly, if I serve the edge function runtime locally (while testing them out), then the module is specific to the docker container that's hosting the edge runtime, and the module label looks like /home/deno/...

Expected result

I would expect my filesystem details to not be present in the module label.