{"name":"@opentelemetry/otlp-exporter-base","version":"0.204.0","keywords":["opentelemetry","nodejs","tracing","profiling","metrics","stats","monitoring"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","_id":"@opentelemetry/otlp-exporter-base@0.204.0","maintainers":[{"name":"dyladan","email":"dyladan@gmail.com"},{"name":"pichlermarc","email":"marc.pichler@dynatrace.com"}],"homepage":"https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/otlp-exporter-base","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"dist":{"shasum":"0fa651111e3406da975761739feeef090acd4d2a","tarball":"http://registry-npm.ywwl.com/@opentelemetry/otlp-exporter-base/download/@opentelemetry/otlp-exporter-base-0.204.0.tgz","fileCount":300,"integrity":"sha512-K1LB1Ht4rGgOtZQ1N8xAwUnE1h9EQBfI4XUbSorbC6OxK6s/fLzl+UAhZX1cmBsDqM5mdx5+/k4QaKlDxX6UXQ==","signatures":[{"sig":"MEUCIDY1iUZqFtQtKI1Pje6xYDE3B3LUgN1/BgY/H+3Lr84CAiEAgCp3/LxNCKBz6/ZoRI3jluhAlSgRYXBTzNhJK78zuNA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@opentelemetry%2fotlp-exporter-base@0.204.0","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":550585,"size":54670,"noattachment":false,"key":"/@opentelemetry/otlp-exporter-base/-/@opentelemetry/otlp-exporter-base-0.204.0.tgz"},"main":"build/src/index.js","types":"build/src/index.d.ts","esnext":"build/esnext/index.js","module":"build/esm/index.js","engines":{"node":"^18.19.0 || >=20.6.0"},"exports":{".":{"types":"./build/src/index.d.ts","esnext":"./build/esnext/index.js","module":"./build/esm/index.js","default":"./build/src/index.js"},"./node-http":{"types":"./build/src/index-node-http.d.ts","esnext":"./build/esnext/index-node-http.js","module":"./build/esm/index-node-http.js","default":"./build/src/index-node-http.js"},"./browser-http":{"types":"./build/src/index-browser-http.d.ts","esnext":"./build/esnext/index-browser-http.js","module":"./build/esm/index-browser-http.js","default":"./build/src/index-browser-http.js"}},"gitHead":"98f9d720af84bc38074dfd4ab7760ae83a3e9826","scripts":{"tdd":"npm run test -- --watch-extensions ts --watch","lint":"eslint . --ext .ts","test":"nyc mocha 'test/**/*.test.ts' --exclude 'test/browser/**/*.ts'","clean":"tsc --build --clean tsconfig.json tsconfig.esm.json tsconfig.esnext.json","watch":"tsc --build --watch tsconfig.json tsconfig.esm.json tsconfig.esnext.json","compile":"tsc --build tsconfig.json tsconfig.esm.json tsconfig.esnext.json","version":"node ../../../scripts/version-update.js","lint:fix":"eslint . --ext .ts --fix","prewatch":"npm run precompile","precompile":"lerna run version --scope @opentelemetry/otlp-exporter-base --include-dependencies","tdd:browser":"karma start","test:browser":"karma start --single-run","align-api-deps":"node ../../../scripts/align-api-deps.js","prepublishOnly":"npm run compile"},"_npmUser":{"name":"dyladan","email":"dyladan@gmail.com"},"repository":{"url":"git+https://github.com/open-telemetry/opentelemetry-js.git","type":"git"},"_npmVersion":"lerna/6.6.2/node@v18.20.8+x64 (linux)","description":"OpenTelemetry OTLP Exporter base (for internal use only)","directories":{},"sideEffects":false,"_nodeVersion":"18.20.8","dependencies":{"@opentelemetry/core":"2.1.0","@opentelemetry/otlp-transformer":"0.204.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"17.1.0","karma":"6.4.4","lerna":"6.6.2","mocha":"11.7.2","sinon":"18.0.1","webpack":"5.101.3","ts-loader":"9.5.4","typescript":"5.0.4","@babel/core":"7.27.1","@types/node":"18.6.5","karma-mocha":"2.0.1","webpack-cli":"6.0.1","@types/mocha":"10.0.10","@types/sinon":"17.0.4","karma-webpack":"5.0.1","karma-coverage":"2.2.1","@babel/preset-env":"7.27.2","@opentelemetry/api":"1.9.0","karma-spec-reporter":"0.0.36","babel-plugin-istanbul":"7.0.0","karma-chrome-launcher":"3.1.0"},"peerDependencies":{"@opentelemetry/api":"^1.3.0"},"_npmOperationalInternal":{"tmp":"tmp/otlp-exporter-base_0.204.0_1756976386270_0.6988917531180201","host":"s3://npm-registry-packages-npm-production"},"readme":"# OpenTelemetry Collector Exporter for web and node\n\n[![NPM Published Version][npm-img]][npm-url]\n[![Apache License][license-image]][license-image]\n\n**Note: This package is intended for internal use only.**\n\n**Note: This is an experimental package under active development. New releases may include breaking changes.**\n\nThis module provides base components for OTLP Exporters, both Web and Node.js.\n\n## Installation\n\n```bash\nnpm install --save @opentelemetry/otlp-exporter-base\n```\n\n## HTTP exporter configuration\n\nHTTP JSON and HTTP/protobuf exporters for traces, metrics, and logs share these configuration options.\nNode.js exporters accept `OTLPExporterNodeConfigBase`, which also includes the options from `OTLPExporterConfigBase`.\nConfiguration precedence is: programmatic options, then per-signal environment variables, then general environment variables, then built-in defaults.\n\n| Option             | Type                                                          | Default                                             | Description                                                                                                                              |\n| ------------------ | ------------------------------------------------------------- | --------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |\n| `url`              | `string`                                                      | `undefined` (default resolved per precedence above) | Collector endpoint URL.                                                                                                                  |\n| `headers`          | `Record<string, string> \\| HeadersFactory`                    | `undefined`                                         | Custom HTTP headers. A factory function may be async and must not throw. Exporters still apply required transport headers.               |\n| `concurrencyLimit` | `number`                                                      | `30`                                                | Maximum number of in-flight export requests.                                                                                             |\n| `timeoutMillis`    | `number`                                                      | `10000`                                             | Maximum time, in milliseconds, to wait for each batch export.                                                                            |\n| `compression`      | `CompressionAlgorithm.NONE \\| CompressionAlgorithm.GZIP`      | `CompressionAlgorithm.NONE`                         | Compression for outgoing OTLP HTTP requests in Node.js.                                                                                  |\n| `keepAlive`        | `boolean`                                                     | `true`                                              | Sets `keepAlive` on the Node.js HTTP or HTTPS agent created by the exporter. A `keepAlive` value in `httpAgentOptions` takes precedence. |\n| `httpAgentOptions` | `http.AgentOptions \\| https.AgentOptions \\| HttpAgentFactory` | Agent options with `keepAlive: true`                | Custom Node.js HTTP or HTTPS agent options, or a factory function that receives the request protocol and returns an agent.               |\n| `userAgent`        | `string`                                                      | The exporter's default user agent                   | Prefix to add to the exporter's default `User-Agent` header in Node.js.                                                                  |\n\n| Option                  | General environment variable            | Signal-specific environment variables                                                                                    |\n| ----------------------- | --------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ |\n| `url`                   | `OTEL_EXPORTER_OTLP_ENDPOINT`           | `OTEL_EXPORTER_OTLP_TRACES_ENDPOINT`, `OTEL_EXPORTER_OTLP_METRICS_ENDPOINT`, `OTEL_EXPORTER_OTLP_LOGS_ENDPOINT`          |\n| `headers`               | `OTEL_EXPORTER_OTLP_HEADERS`            | `OTEL_EXPORTER_OTLP_TRACES_HEADERS`, `OTEL_EXPORTER_OTLP_METRICS_HEADERS`, `OTEL_EXPORTER_OTLP_LOGS_HEADERS`             |\n| `timeoutMillis`         | `OTEL_EXPORTER_OTLP_TIMEOUT`            | `OTEL_EXPORTER_OTLP_TRACES_TIMEOUT`, `OTEL_EXPORTER_OTLP_METRICS_TIMEOUT`, `OTEL_EXPORTER_OTLP_LOGS_TIMEOUT`             |\n| `compression`           | `OTEL_EXPORTER_OTLP_COMPRESSION`        | `OTEL_EXPORTER_OTLP_TRACES_COMPRESSION`, `OTEL_EXPORTER_OTLP_METRICS_COMPRESSION`, `OTEL_EXPORTER_OTLP_LOGS_COMPRESSION` |\n| `concurrencyLimit`      | Not supported                           | Not supported                                                                                                            |\n| `keepAlive`             | Not supported                           | Not supported                                                                                                            |\n| `httpAgentOptions.ca`   | `OTEL_EXPORTER_OTLP_CERTIFICATE`        | `OTEL_EXPORTER_OTLP_{TRACES,METRICS,LOGS}_CERTIFICATE`                                                                   |\n| `httpAgentOptions.cert` | `OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE` | `OTEL_EXPORTER_OTLP_{TRACES,METRICS,LOGS}_CLIENT_CERTIFICATE`                                                            |\n| `httpAgentOptions.key`  | `OTEL_EXPORTER_OTLP_CLIENT_KEY`         | `OTEL_EXPORTER_OTLP_{TRACES,METRICS,LOGS}_CLIENT_KEY`                                                                    |\n| `userAgent`             | Not supported                           | Not supported                                                                                                            |\n\n## GRPC\n\nFor GRPC please check [npm-url-grpc]\n\n## Useful links\n\n- For more information on OpenTelemetry, visit: <https://opentelemetry.io/>\n- For more about OpenTelemetry JavaScript: <https://github.com/open-telemetry/opentelemetry-js>\n- For help or feedback on this project, join us in [GitHub Discussions][discussions-url]\n\n## License\n\nApache 2.0 - See [LICENSE][license-url] for more information.\n\n[discussions-url]: https://github.com/open-telemetry/opentelemetry-js/discussions\n[license-url]: https://github.com/open-telemetry/opentelemetry-js/blob/main/LICENSE\n[license-image]: https://img.shields.io/badge/license-Apache_2.0-green.svg?style=flat\n[npm-url]: https://www.npmjs.com/package/@opentelemetry/otlp-exporter-base\n[npm-url-grpc]: https://www.npmjs.com/package/@opentelemetry/otlp-grpc-exporter-base\n[npm-img]: https://badge.fury.io/js/%40opentelemetry%2Fotlp-exporter-base.svg\n","publish_time":1756976386504,"_cnpm_publish_time":1756976386504,"dist-tags":{"canary":"0.300.0-rc.0","latest":"0.301.0","next":"0.34.0"}}