open-index/open-npm huggingface dataset:
npm package: @hyperdx/cli
Description: Command line interface for HyperDX.
Latest version: 0.2.0

# @hyperdx/cli

Command line interface for HyperDX.

## Uploading Source Maps

Upload JavaScript source maps to HyperDX for stack trace de-obfuscation.

In your build pipeline, run the CLI tool:

```bash
npx @hyperdx/cli upload-sourcemaps \
  --serviceKey "$HYPERDX_API_ACCESS_KEY" \
  --apiUrl "$HYPERDX_API_URL" \
  --path .next \
  --releaseId "$RELEASE_ID"
```

You can also add this as an npm script:

```json
{
  "scripts": {
    "upload-sourcemaps": "npx @hyperdx/cli upload-sourcemaps --path=\".next\""
  }
}
```

### Options

| Flag                      | Description                                            | Default |
| ------------------------- | ------------------------------------------------------ | ------- |
| `-k, --serviceKey <key>`  | HyperDX service account API key                        |         |
| `-p, --path <dir>`        | Directory containing sourcemaps                        | `.`     |
| `-u, --apiUrl <url>`      | HyperDX API URL (required for self-hosted deployments) |         |
| `-rid, --releaseId <id>`  | Release ID to associate with the sourcemaps            |         |
| `-bp, --basePath <path>`  | Base path for the uploaded sourcemaps                  |         |

Optionally, set the `HYPERDX_SERVICE_KEY` environment variable to avoid passing
the `--serviceKey` flag.
npm package: @hyperdx/deno
Description: ⚠️ Currently only supports OpenTelemetry Logging. For tracing support, [see the following guide](https://dev.to/grunet/leveraging-opentelemetry-in-deno-45bj#a-minimal-interesting-example).
Latest version: 0.0.4

# OpenTelemetry Support for Deno

⚠️ Currently only supports OpenTelemetry Logging. For tracing support, [see the following guide](https://dev.to/grunet/leveraging-opentelemetry-in-deno-45bj#a-minimal-interesting-example).

## Logging

Logging is supported by exporting a custom logger for the `std/log` module.

**Example usage:**

```typescript
import * as log from 'https://deno.land/std@0.203.0/log/mod.ts';
import { OpenTelemetryHandler } from 'npm:@hyperdx/deno';

log.setup({
  handlers: {
    otel: new OpenTelemetryHandler('DEBUG'),
  },

  loggers: {
    'my-otel-logger': {
      level: 'DEBUG',
      handlers: ['otel'],
    },
  },
});

log.getLogger('my-otel-logger').info('Hello from Deno!');
```