# 0-dd-trace-init-first-production

> A package that initializes dd trace when the environment is production, (and is lexographically superior, so that it is sorted to be "first")

Latest version **1.1.1** (published 2020-03-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install 0-dd-trace-init-first-production
pnpm add 0-dd-trace-init-first-production
yarn add 0-dd-trace-init-first-production
bun add 0-dd-trace-init-first-production
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2020-03-03 |
| First published | 2020-02-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | McKay Salisbury |
| Maintainers | mckaysalisbury |
| Keywords | dd-trace, init |

## Links

- npm: https://www.npmjs.com/package/0-dd-trace-init-first-production
- Repository: https://github.com/dave-inc/-dd-trace-init-first-production
- Homepage: https://github.com/dave-inc/-dd-trace-init-first-production#readme
- Issues: https://github.com/dave-inc/-dd-trace-init-first-production/issues
- npm.io page: https://npm.io/package/0-dd-trace-init-first-production

## Recent versions

- 1.1.1 (latest) — 2020-03-03
- 1.1.0 — 2020-02-21
- 1.0.1 — 2020-02-07
- 1.0.0 — 2020-02-07

## README

A package that initializes dd trace when the environment is production, (and is
lexographically superior, so that it is sorted to be "first").

# Usage
To use this package, import or require it.

    import '0-dd-trace-init-first-production';

# Naming

* `0-` - beginning with a `-` is slightly prefered to me, but npmjs.com doesn't
  allow it. It just errors with a 404 if you try, so it might be a bug, but my
  gut says it's intentional. It's not consistent with the npm package though.
  Note that `0-` is lexographically superior to `00000-`. `0-` is the most
  lexographically superior prefix for an npmjs.com package.
* `dd-trace` - It's a `dd-trace` lib at heart, so it's got `dd-trace` in it.
* `init` - It runs the `init()` method.
* `first` - This is kind of redundant with the `0-` prefix, but this should
  remind developers that it belongs at the first, in case someone decides to
  name their package `0--a` or something silly that is more superior. I admit
  that this solution isn't perfect, it's just [more
  perfect](https://en.wikisource.org/wiki/Constitution_of_the_United_States_of_America)
  than anything else I can think of.
* `production` - It only runs `init()` if the node env is production. Someone
  might want a `0-dd-trace-init-first` that runs always or something.

---
_Source: https://npm.io/package/0-dd-trace-init-first-production · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
