---
title: "Netlify Edge Functions"
source: OpenTelemetry Documentation
source_url: https://github.com/open-telemetry/opentelemetry.io
licence: CC-BY-4.0
domain: engineering
subdomain: opentelemetry-docs
date_added: 2026-04-25
---

# Netlify Edge Functions

This directory holds Edge Function entry points, shared helpers (`lib/`), and
per-function folders (for example `markdown-negotiation/`, `asset-tracking/`,
`schema-analytics/`).

## Node and `package.json`

[`package.json`](./package.json) in this directory sets `"type": "module"` so
Node treats `*.test.ts` files here as ESM when using `node --test`, without
changing module semantics for the rest of the repository.

## Tests

Per-function testing, if any, is documented in each folder’s README.

## Unit tests

To run all edge-function unit tests, from the repository root:

```console
npm run test:edge-functions
```

## Live tests

To run the live deployed-host tests:

```console
npm run test:edge-functions:live -- [URL | PR_NUMBER]
```

This combined runner executes all edge-function live suites and reports all
suite failures together instead of stopping at the first failure.

Per-function live test launchers:

```console
npm run _test:ef:live:markdown-negotiation -- [URL | PR_NUMBER]
npm run _test:ef:live:asset-tracking -- [URL | PR_NUMBER]
npm run _test:ef:live:schema-analytics -- [URL | PR_NUMBER]
npm run _test:ef:live:registry-component-redirect -- [URL | PR_NUMBER]
```
