dt-js-runtime

Solid

Dynatrace server-side JS runtime — function contract, runtime limits, Web APIs, Node.js modules, fetch with credential vault, and the @dynatrace-sdk/* catalog.

AI & Automation 117 stars 24 forks Updated 3 days ago Apache-2.0

Install

View on GitHub

Quality Score: 86/100

Stars 20%
69
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
93
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Dynatrace JavaScript Runtime The Dynatrace JS runtime is a server-side AppEngine sandbox that executes JavaScript/TypeScript. ## Function contract Every entry point must export a default async function: ```js export default async function () { // ... return result; } ``` ES module syntax required. TypeScript accepted (type annotations, interfaces, generics). No other export shape is supported. ## References Start here, then load only the file you need. | File | When to load | |------|-------------| | [references/limits-and-restrictions.md](references/limits-and-restrictions.md) | Timeout / memory / I/O quotas; what's forbidden (`eval`, WebSocket, sockets, filesystem) | | [references/apis-and-modules.md](references/apis-and-modules.md) | Which Web APIs and Node.js compat modules are available (fetch, crypto, streams, buffer, …) | | [references/fetch.md](references/fetch.md) | Calling internal `/platform/...` APIs or external URLs, credential vault, outbound allowlist | | [references/sdk.md](references/sdk.md) | Any `@dynatrace-sdk/*` package — the index routes you to the right per-SDK file | ## Running a function with dtctl Use `dtctl exec function` to run JS runtime code without deploying an app. ```dtctl # Run inline code dtctl exec function --code 'export default async function() { return "hello" }' # Run from file dtctl exec function -f script.js # Pass JSON input — accessed as event.payload inside the function dtctl exec function -f script.js --payload ...

Details

Author
Dynatrace
Repository
Dynatrace/dynatrace-for-ai
Created
3 months ago
Last Updated
3 days ago
Language
Shell
License
Apache-2.0

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category