5 |
6 | Zipkin Exporter Example
7 |
8 |
9 |
10 |
11 |
12 | Example of using Web Tracer with Zipkin Exporter
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/renovate.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": [
3 | "config:base"
4 | ],
5 | "packageRules": [
6 | {
7 | "groupName": "all non-major dependencies",
8 | "updateTypes": ["patch", "minor"],
9 | "groupSlug": "all-minor-patch"
10 | }
11 | ],
12 | "ignoreDeps": [
13 | "gcp-metadata",
14 | "got",
15 | "mocha"
16 | ],
17 | "assignees": [
18 | "@dyladan",
19 | "@mayurkale22",
20 | "@obecny"
21 | ],
22 | "schedule": [
23 | "before 3am on Friday"
24 | ],
25 | "labels": ["dependencies"]
26 | }
27 |
--------------------------------------------------------------------------------
/examples/tracer-web/examples/fetch/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Fetch Plugin Example
7 |
8 |
9 |
10 |
11 |
12 |
13 | Example of using Web Tracer with Fetch plugin with console exporter and collector exporter
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/packages/opentelemetry-exporter-jaeger/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "rootDir": ".",
5 | "outDir": "build"
6 | },
7 | "include": [
8 | "src/**/*.ts",
9 | "test/**/*.ts"
10 | ],
11 | "references": [
12 | {
13 | "path": "../opentelemetry-api"
14 | },
15 | {
16 | "path": "../opentelemetry-core"
17 | },
18 | {
19 | "path": "../opentelemetry-resources"
20 | },
21 | {
22 | "path": "../opentelemetry-tracing"
23 | }
24 | ]
25 | }
26 |
--------------------------------------------------------------------------------
/packages/opentelemetry-exporter-zipkin/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "rootDir": ".",
5 | "outDir": "build"
6 | },
7 | "include": [
8 | "src/**/*.ts",
9 | "test/**/*.ts"
10 | ],
11 | "references": [
12 | {
13 | "path": "../opentelemetry-api"
14 | },
15 | {
16 | "path": "../opentelemetry-core"
17 | },
18 | {
19 | "path": "../opentelemetry-resources"
20 | },
21 | {
22 | "path": "../opentelemetry-tracing"
23 | }
24 | ]
25 | }
26 |
--------------------------------------------------------------------------------
/packages/opentelemetry-metrics/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "rootDir": ".",
5 | "outDir": "build"
6 | },
7 | "include": [
8 | "src/**/*.ts",
9 | "test/**/*.ts"
10 | ],
11 | "references": [
12 | {
13 | "path": "../opentelemetry-api"
14 | },
15 | {
16 | "path": "../opentelemetry-api-metrics"
17 | },
18 | {
19 | "path": "../opentelemetry-core"
20 | },
21 | {
22 | "path": "../opentelemetry-resources"
23 | }
24 | ]
25 | }
26 |
--------------------------------------------------------------------------------
/packages/opentelemetry-exporter-prometheus/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "rootDir": ".",
5 | "outDir": "build"
6 | },
7 | "include": [
8 | "src/**/*.ts",
9 | "test/**/*.ts"
10 | ],
11 | "references": [
12 | {
13 | "path": "../opentelemetry-api"
14 | },
15 | {
16 | "path": "../opentelemetry-api-metrics"
17 | },
18 | {
19 | "path": "../opentelemetry-core"
20 | },
21 | {
22 | "path": "../opentelemetry-metrics"
23 | }
24 | ]
25 | }
26 |
--------------------------------------------------------------------------------
/integration-tests/propagation-validation-server/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "rootDir": ".",
5 | "outDir": "build"
6 | },
7 | "include": [],
8 | "references": [
9 | {
10 | "path": "../../packages/opentelemetry-api"
11 | },
12 | {
13 | "path": "../../packages/opentelemetry-context-async-hooks"
14 | },
15 | {
16 | "path": "../../packages/opentelemetry-core"
17 | },
18 | {
19 | "path": "../../packages/opentelemetry-tracing"
20 | }
21 | ]
22 | }
23 |
--------------------------------------------------------------------------------
/benchmark/benchmark.js:
--------------------------------------------------------------------------------
1 | 'use strict';
2 |
3 | const Benchmark = require('benchmark');
4 | const benchmarks = require('beautify-benchmark');
5 |
6 | Benchmark.options.maxTime = 0;
7 |
8 | module.exports = (minSamples) => {
9 | Benchmark.options.minSamples = minSamples;
10 | const suite = new Benchmark.Suite();
11 |
12 | return suite
13 | .on('cycle', event => {
14 | benchmarks.add(event.target);
15 | })
16 | .on('error', event => {
17 | throw event.target.error;
18 | })
19 | .on('complete', function () {
20 | benchmarks.log();
21 | });
22 | };
23 |
--------------------------------------------------------------------------------
/examples/tracer-web/examples/xml-http-request/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | XMLHttpRequest Plugin Example
7 |
8 |
9 |
10 |
11 |
12 |
13 | Example of using Web Tracer with XMLHttpRequest plugin with console exporter and collector exporter
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/.github/CODEOWNERS:
--------------------------------------------------------------------------------
1 | #####################################################
2 | #
3 | # List of approvers for OpenTelemetry JS SDK
4 | #
5 | #####################################################
6 | #
7 | # Learn about membership in OpenTelemetry community:
8 | # https://github.com/open-telemetry/community/blob/master/community-membership.md
9 | #
10 | #
11 | # Learn about CODEOWNERS file format:
12 | # https://help.github.com/en/articles/about-code-owners
13 | #
14 |
15 | * @dyladan @mayurkale22 @OlivierAlbertini @vmarchaud @markwolff @obecny @mwear @naseemkullah @legendecas @Flarna @johnbley
16 |
--------------------------------------------------------------------------------
/packages/opentelemetry-grpc-utils/test/fixtures/grpc-test.proto:
--------------------------------------------------------------------------------
1 | syntax = "proto3";
2 |
3 | package pkg_test;
4 |
5 | service GrpcTester {
6 | rpc UnaryMethod (TestRequest) returns (TestReply) {}
7 | rpc camelCaseMethod (TestRequest) returns (TestReply) {}
8 | rpc ClientStreamMethod (stream TestRequest) returns (TestReply) {}
9 | rpc ServerStreamMethod (TestRequest) returns (stream TestReply) {}
10 | rpc BidiStreamMethod (stream TestRequest) returns (stream TestReply) {}
11 | }
12 |
13 | message TestRequest {
14 | int32 num = 1;
15 | }
16 |
17 | message TestReply {
18 | int32 num = 1;
19 | }
20 |
--------------------------------------------------------------------------------
/getting-started/monitored-example/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@opentelemetry/getting-started-monitored-example",
3 | "version": "0.17.0",
4 | "description": "This repository provides everything required to follow the OpenTelemetry Getting Started Guide",
5 | "main": "app.js",
6 | "scripts": {
7 | "start": "node app.js"
8 | },
9 | "author": "OpenTelemetry Authors",
10 | "license": "Apache-2.0",
11 | "dependencies": {
12 | "@opentelemetry/exporter-prometheus": "^0.17.0",
13 | "@opentelemetry/metrics": "^0.17.0",
14 | "axios": "^0.21.0",
15 | "express": "^4.17.1"
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/packages/opentelemetry-instrumentation-grpc/test/fixtures/grpc-test.proto:
--------------------------------------------------------------------------------
1 | syntax = "proto3";
2 |
3 | package pkg_test;
4 |
5 | service GrpcTester {
6 | rpc UnaryMethod (TestRequest) returns (TestReply) {}
7 | rpc camelCaseMethod (TestRequest) returns (TestReply) {}
8 | rpc ClientStreamMethod (stream TestRequest) returns (TestReply) {}
9 | rpc ServerStreamMethod (TestRequest) returns (stream TestReply) {}
10 | rpc BidiStreamMethod (stream TestRequest) returns (stream TestReply) {}
11 | }
12 |
13 | message TestRequest {
14 | int32 num = 1;
15 | }
16 |
17 | message TestReply {
18 | int32 num = 1;
19 | }
20 |
--------------------------------------------------------------------------------
/backwards-compatability/node10/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "backcompat-node10",
3 | "version": "0.17.0",
4 | "private": true,
5 | "description": "Backwards compatability app for node8 types and the OpenTelemetry Node.js SDK",
6 | "main": "index.js",
7 | "scripts": {
8 | "test:backcompat": "tsc --noEmit index.ts"
9 | },
10 | "dependencies": {
11 | "@opentelemetry/sdk-node": "^0.17.0",
12 | "@opentelemetry/tracing": "^0.17.0"
13 | },
14 | "devDependencies": {
15 | "@types/node": "10.17.50",
16 | "typescript": "4.1.3"
17 | },
18 | "author": "OpenTelemetry Authors",
19 | "license": "Apache-2.0"
20 | }
21 |
--------------------------------------------------------------------------------
/backwards-compatability/node12/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "backcompat-node12",
3 | "version": "0.17.0",
4 | "private": true,
5 | "description": "Backwards compatability app for node8 types and the OpenTelemetry Node.js SDK",
6 | "main": "index.js",
7 | "scripts": {
8 | "test:backcompat": "tsc --noEmit index.ts"
9 | },
10 | "dependencies": {
11 | "@opentelemetry/sdk-node": "^0.17.0",
12 | "@opentelemetry/tracing": "^0.17.0"
13 | },
14 | "devDependencies": {
15 | "@types/node": "12.19.13",
16 | "typescript": "4.1.3"
17 | },
18 | "author": "OpenTelemetry Authors",
19 | "license": "Apache-2.0"
20 | }
21 |
--------------------------------------------------------------------------------
/backwards-compatability/node8/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "backcompat-node8",
3 | "version": "0.17.0",
4 | "private": true,
5 | "description": "Backwards compatability app for node8 types and the OpenTelemetry Node.js SDK",
6 | "main": "index.js",
7 | "scripts": {
8 | "test:backcompat": "tsc --noEmit index.ts"
9 | },
10 | "dependencies": {
11 | "@opentelemetry/sdk-node": "^0.17.0",
12 | "@opentelemetry/tracing": "^0.17.0"
13 | },
14 | "devDependencies": {
15 | "@types/node": "8.10.66",
16 | "typescript": "4.1.3"
17 | },
18 | "author": "OpenTelemetry Authors",
19 | "license": "Apache-2.0"
20 | }
21 |
--------------------------------------------------------------------------------
/packages/opentelemetry-tracing/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "rootDir": ".",
5 | "outDir": "build"
6 | },
7 | "include": [
8 | "src/**/*.ts",
9 | "test/**/*.ts"
10 | ],
11 | "references": [
12 | {
13 | "path": "../opentelemetry-api"
14 | },
15 | {
16 | "path": "../opentelemetry-context-base"
17 | },
18 | {
19 | "path": "../opentelemetry-core"
20 | },
21 | {
22 | "path": "../opentelemetry-resources"
23 | },
24 | {
25 | "path": "../opentelemetry-semantic-conventions"
26 | }
27 | ]
28 | }
29 |
--------------------------------------------------------------------------------
/getting-started/ts-example/example/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@opentelemetry/getting-started-ts-example",
3 | "version": "0.15.0",
4 | "description": "This repository provides everything required to follow the OpenTelemetry Getting Started Guide",
5 | "main": "app.ts",
6 | "scripts": {
7 | "start": "ts-node app.ts"
8 | },
9 | "author": "OpenTelemetry Authors",
10 | "license": "Apache-2.0",
11 | "devDependencies": {
12 | "@types/express": "4.17.11",
13 | "@types/node": "14.14.20",
14 | "ts-node": "8.10.2"
15 | },
16 | "dependencies": {
17 | "axios": "^0.21.0",
18 | "express": "^4.17.1"
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/bug_report.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Bug report
3 | about: Create a report to help us improve
4 | labels: bug
5 | ---
6 |
7 | Please answer these questions before submitting a bug report.
8 |
9 | ### What version of OpenTelemetry are you using?
10 |
11 | ### What version of Node are you using?
12 |
13 | ### Please provide the code you used to setup the OpenTelemetry SDK
14 |
15 | ### What did you do?
16 |
17 | If possible, provide a recipe for reproducing the error.
18 |
19 | ### What did you expect to see?
20 |
21 | ### What did you see instead?
22 |
23 | ### Additional context
24 |
25 | Add any other context about the problem here.
26 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/discussion.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Discussion
3 | about: Ask a question or bring up points of consideration
4 | labels: discussion
5 | ---
6 |
7 |
10 |
11 | - [ ] This only affects the JavaScript OpenTelemetry library
12 | - [ ] This may affect other libraries, but I would like to get opinions here first
13 |
--------------------------------------------------------------------------------
/lerna.json:
--------------------------------------------------------------------------------
1 | {
2 | "lerna": "3.13.4",
3 | "npmClient": "npm",
4 | "packages": [
5 | "benchmark/*",
6 | "backwards-compatability/*",
7 | "metapackages/*",
8 | "packages/*",
9 | "integration-tests/*"
10 | ],
11 | "version": "0.17.0",
12 | "changelog": {
13 | "repo": "open-telemetry/opentelemetry-js",
14 | "labels": {
15 | "breaking": ":boom: Breaking Change",
16 | "enhancement": ":rocket: (Enhancement)",
17 | "bug": ":bug: (Bug Fix)",
18 | "core": ":wrench: Core",
19 | "document": ":books: (Refine Doc)",
20 | "feature-request": ":sparkles: (Feature)"
21 | },
22 | "cacheDir": ".changelog"
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/tsconfig.base.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "allowUnreachableCode": false,
4 | "allowUnusedLabels": false,
5 | "composite": true,
6 | "declaration": true,
7 | "declarationMap": true,
8 | "forceConsistentCasingInFileNames": true,
9 | "module": "commonjs",
10 | "noEmitOnError": true,
11 | "noFallthroughCasesInSwitch": true,
12 | "noImplicitReturns": true,
13 | "noUnusedLocals": true,
14 | "pretty": true,
15 | "sourceMap": true,
16 | "strict": true,
17 | "strictNullChecks": true,
18 | "target": "es2017",
19 | "incremental": true,
20 | "newLine": "LF"
21 | },
22 | "exclude": [
23 | "node_modules"
24 | ]
25 | }
26 |
--------------------------------------------------------------------------------
/examples/collector-exporter-node/docker/collector-config.yaml:
--------------------------------------------------------------------------------
1 | receivers:
2 | otlp:
3 | protocols:
4 | grpc:
5 | http:
6 | cors_allowed_origins:
7 | - http://*
8 | - https://*
9 |
10 | exporters:
11 | zipkin:
12 | endpoint: "http://zipkin-all-in-one:9411/api/v2/spans"
13 | prometheus:
14 | endpoint: "0.0.0.0:9464"
15 |
16 | processors:
17 | batch:
18 | queued_retry:
19 |
20 | service:
21 | pipelines:
22 | traces:
23 | receivers: [otlp]
24 | exporters: [zipkin]
25 | processors: [batch, queued_retry]
26 | metrics:
27 | receivers: [otlp]
28 | exporters: [prometheus]
29 | processors: [batch, queued_retry]
30 |
--------------------------------------------------------------------------------
/examples/https/server-cert.pem:
--------------------------------------------------------------------------------
1 | -----BEGIN CERTIFICATE-----
2 | MIIBqzCCARQCCQDLcUeJsLDL5jANBgkqhkiG9w0BAQUFADAaMQswCQYDVQQGEwJD
3 | QTELMAkGA1UECAwCUUMwHhcNMTkwOTI5MjIwMDI2WhcNMTkxMDI5MjIwMDI2WjAa
4 | MQswCQYDVQQGEwJDQTELMAkGA1UECAwCUUMwgZ8wDQYJKoZIhvcNAQEBBQADgY0A
5 | MIGJAoGBALhfi1dwIyC1Jha4N/j/VtlPPi+j+SZQGZqLNVVgzzGY7+cc3VkCySZD
6 | yXh3Z+/ftp9DDKdHRutJQE0R4peSDussC/IQDJKzuKN/O9S6tnNlgUr5YZLRENxL
7 | FSJIY5cIkty50IrEhlN5QeDJP8p4yrYq9J6M0yzyfdqIWI3CBqbzAgMBAAEwDQYJ
8 | KoZIhvcNAQEFBQADgYEArnOeXmXXJTK39Ma25elHxlYUZiYOBu/truy5zmx4umyS
9 | GyehAv+jRIanoCRWtOBnrjS5CY/6cC64aIVLMoqXEFIL7q/GD0wEM/DS8rN7KTcp
10 | w+nIX98srYaAFeQZScPioS6WpXz5AjbTVhvAwkIm2/s6dOlX31+1zu6Zu6ASSuQ=
11 | -----END CERTIFICATE-----
12 |
--------------------------------------------------------------------------------
/packages/opentelemetry-exporter-collector/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "rootDir": ".",
5 | "outDir": "build"
6 | },
7 | "include": [
8 | "src/**/*.ts",
9 | "test/**/*.ts"
10 | ],
11 | "references": [
12 | {
13 | "path": "../opentelemetry-api"
14 | },
15 | {
16 | "path": "../opentelemetry-api-metrics"
17 | },
18 | {
19 | "path": "../opentelemetry-core"
20 | },
21 | {
22 | "path": "../opentelemetry-metrics"
23 | },
24 | {
25 | "path": "../opentelemetry-resources"
26 | },
27 | {
28 | "path": "../opentelemetry-tracing"
29 | }
30 | ]
31 | }
32 |
--------------------------------------------------------------------------------
/packages/opentelemetry-node/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "rootDir": ".",
5 | "outDir": "build"
6 | },
7 | "include": [
8 | "src/**/*.ts",
9 | "test/**/*.ts"
10 | ],
11 | "references": [
12 | {
13 | "path": "../opentelemetry-api"
14 | },
15 | {
16 | "path": "../opentelemetry-context-async-hooks"
17 | },
18 | {
19 | "path": "../opentelemetry-context-base"
20 | },
21 | {
22 | "path": "../opentelemetry-core"
23 | },
24 | {
25 | "path": "../opentelemetry-resources"
26 | },
27 | {
28 | "path": "../opentelemetry-tracing"
29 | }
30 | ]
31 | }
32 |
--------------------------------------------------------------------------------
/packages/opentelemetry-core/src/platform/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | export * from './node';
17 |
--------------------------------------------------------------------------------
/packages/opentelemetry-plugin-https/test/fixtures/server-cert.pem:
--------------------------------------------------------------------------------
1 | -----BEGIN CERTIFICATE-----
2 | MIIBqzCCARQCCQDLcUeJsLDL5jANBgkqhkiG9w0BAQUFADAaMQswCQYDVQQGEwJD
3 | QTELMAkGA1UECAwCUUMwHhcNMTkwOTI5MjIwMDI2WhcNMTkxMDI5MjIwMDI2WjAa
4 | MQswCQYDVQQGEwJDQTELMAkGA1UECAwCUUMwgZ8wDQYJKoZIhvcNAQEBBQADgY0A
5 | MIGJAoGBALhfi1dwIyC1Jha4N/j/VtlPPi+j+SZQGZqLNVVgzzGY7+cc3VkCySZD
6 | yXh3Z+/ftp9DDKdHRutJQE0R4peSDussC/IQDJKzuKN/O9S6tnNlgUr5YZLRENxL
7 | FSJIY5cIkty50IrEhlN5QeDJP8p4yrYq9J6M0yzyfdqIWI3CBqbzAgMBAAEwDQYJ
8 | KoZIhvcNAQEFBQADgYEArnOeXmXXJTK39Ma25elHxlYUZiYOBu/truy5zmx4umyS
9 | GyehAv+jRIanoCRWtOBnrjS5CY/6cC64aIVLMoqXEFIL7q/GD0wEM/DS8rN7KTcp
10 | w+nIX98srYaAFeQZScPioS6WpXz5AjbTVhvAwkIm2/s6dOlX31+1zu6Zu6ASSuQ=
11 | -----END CERTIFICATE-----
12 |
--------------------------------------------------------------------------------
/packages/opentelemetry-api/src/platform/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './node';
18 |
--------------------------------------------------------------------------------
/packages/opentelemetry-grpc-utils/test/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | export * from './grpcUtils.test';
17 |
--------------------------------------------------------------------------------
/packages/opentelemetry-instrumentation-http/test/fixtures/server-cert.pem:
--------------------------------------------------------------------------------
1 | -----BEGIN CERTIFICATE-----
2 | MIIBqzCCARQCCQDLcUeJsLDL5jANBgkqhkiG9w0BAQUFADAaMQswCQYDVQQGEwJD
3 | QTELMAkGA1UECAwCUUMwHhcNMTkwOTI5MjIwMDI2WhcNMTkxMDI5MjIwMDI2WjAa
4 | MQswCQYDVQQGEwJDQTELMAkGA1UECAwCUUMwgZ8wDQYJKoZIhvcNAQEBBQADgY0A
5 | MIGJAoGBALhfi1dwIyC1Jha4N/j/VtlPPi+j+SZQGZqLNVVgzzGY7+cc3VkCySZD
6 | yXh3Z+/ftp9DDKdHRutJQE0R4peSDussC/IQDJKzuKN/O9S6tnNlgUr5YZLRENxL
7 | FSJIY5cIkty50IrEhlN5QeDJP8p4yrYq9J6M0yzyfdqIWI3CBqbzAgMBAAEwDQYJ
8 | KoZIhvcNAQEFBQADgYEArnOeXmXXJTK39Ma25elHxlYUZiYOBu/truy5zmx4umyS
9 | GyehAv+jRIanoCRWtOBnrjS5CY/6cC64aIVLMoqXEFIL7q/GD0wEM/DS8rN7KTcp
10 | w+nIX98srYaAFeQZScPioS6WpXz5AjbTVhvAwkIm2/s6dOlX31+1zu6Zu6ASSuQ=
11 | -----END CERTIFICATE-----
12 |
--------------------------------------------------------------------------------
/packages/opentelemetry-plugin-grpc/src/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './grpc';
18 |
--------------------------------------------------------------------------------
/packages/opentelemetry-plugin-https/src/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './https';
18 |
--------------------------------------------------------------------------------
/packages/opentelemetry-api-metrics/src/platform/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './node';
18 |
--------------------------------------------------------------------------------
/packages/opentelemetry-plugin-grpc-js/src/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './grpcJs';
18 |
--------------------------------------------------------------------------------
/packages/opentelemetry-resources/src/platform/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './node';
18 |
--------------------------------------------------------------------------------
/packages/opentelemetry-api/src/platform/node/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './globalThis';
18 |
--------------------------------------------------------------------------------
/packages/opentelemetry-exporter-zipkin/src/platform/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './node';
18 |
--------------------------------------------------------------------------------
/packages/opentelemetry-instrumentation-fetch/src/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './fetch';
18 |
--------------------------------------------------------------------------------
/packages/opentelemetry-instrumentation/src/platform/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './node';
18 |
--------------------------------------------------------------------------------
/packages/opentelemetry-semantic-conventions/src/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './trace';
18 |
--------------------------------------------------------------------------------
/packages/opentelemetry-api/src/platform/browser/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './globalThis';
18 |
--------------------------------------------------------------------------------
/packages/opentelemetry-exporter-collector/src/platform/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './node';
18 |
--------------------------------------------------------------------------------
/packages/opentelemetry-exporter-zipkin/src/platform/node/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './util';
18 |
--------------------------------------------------------------------------------
/packages/opentelemetry-plugin-grpc-js/src/server/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './patchServer';
18 |
--------------------------------------------------------------------------------
/packages/opentelemetry-resource-detector-aws/src/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './detectors';
18 |
--------------------------------------------------------------------------------
/packages/opentelemetry-shim-opentracing/src/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export { TracerShim } from './shim';
18 |
--------------------------------------------------------------------------------
/packages/opentelemetry-api-metrics/src/platform/browser/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './globalThis';
18 |
--------------------------------------------------------------------------------
/packages/opentelemetry-api-metrics/src/platform/node/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './globalThis';
18 |
--------------------------------------------------------------------------------
/packages/opentelemetry-exporter-zipkin/src/platform/browser/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './util';
18 |
--------------------------------------------------------------------------------
/packages/opentelemetry-instrumentation-grpc/src/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './instrumentation';
18 |
--------------------------------------------------------------------------------
/packages/opentelemetry-instrumentation-xml-http-request/src/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './xhr';
18 |
--------------------------------------------------------------------------------
/getting-started/ts-example/monitored-example/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@opentelemetry/getting-started-monitored-ts-example",
3 | "version": "0.17.0",
4 | "description": "This repository provides everything required to follow the OpenTelemetry Getting Started Guide",
5 | "main": "app.ts",
6 | "scripts": {
7 | "start": "ts-node app.ts"
8 | },
9 | "author": "OpenTelemetry Authors",
10 | "license": "Apache-2.0",
11 | "devDependencies": {
12 | "@types/express": "4.17.11",
13 | "@types/node": "14.14.20",
14 | "ts-node": "8.10.2"
15 | },
16 | "dependencies": {
17 | "@opentelemetry/exporter-prometheus": "^0.17.0",
18 | "@opentelemetry/metrics": "^0.17.0",
19 | "axios": "^0.21.0",
20 | "express": "^4.17.1"
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/packages/opentelemetry-resource-detector-gcp/src/detectors/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './GcpDetector';
18 |
--------------------------------------------------------------------------------
/packages/opentelemetry-resources/src/platform/browser/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './detect-resources';
18 |
--------------------------------------------------------------------------------
/packages/opentelemetry-core/src/platform/browser/performance.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export const otperformance = performance;
18 |
--------------------------------------------------------------------------------
/packages/opentelemetry-core/src/platform/browser/timer-util.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | export function unrefTimer(_timer: number): void {}
17 |
--------------------------------------------------------------------------------
/packages/opentelemetry-exporter-collector-grpc/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "rootDir": ".",
5 | "outDir": "build"
6 | },
7 | "include": [
8 | "src/**/*.ts",
9 | "test/**/*.ts"
10 | ],
11 | "references": [
12 | {
13 | "path": "../opentelemetry-api"
14 | },
15 | {
16 | "path": "../opentelemetry-api-metrics"
17 | },
18 | {
19 | "path": "../opentelemetry-core"
20 | },
21 | {
22 | "path": "../opentelemetry-exporter-collector"
23 | },
24 | {
25 | "path": "../opentelemetry-metrics"
26 | },
27 | {
28 | "path": "../opentelemetry-resources"
29 | },
30 | {
31 | "path": "../opentelemetry-tracing"
32 | }
33 | ]
34 | }
35 |
--------------------------------------------------------------------------------
/packages/opentelemetry-grpc-utils/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "rootDir": ".",
5 | "outDir": "build"
6 | },
7 | "include": [
8 | "src/**/*.ts",
9 | "test/**/*.ts"
10 | ],
11 | "references": [
12 | {
13 | "path": "../opentelemetry-api"
14 | },
15 | {
16 | "path": "../opentelemetry-context-async-hooks"
17 | },
18 | {
19 | "path": "../opentelemetry-context-base"
20 | },
21 | {
22 | "path": "../opentelemetry-core"
23 | },
24 | {
25 | "path": "../opentelemetry-node"
26 | },
27 | {
28 | "path": "../opentelemetry-semantic-conventions"
29 | },
30 | {
31 | "path": "../opentelemetry-tracing"
32 | }
33 | ]
34 | }
35 |
--------------------------------------------------------------------------------
/packages/opentelemetry-plugin-http/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "rootDir": ".",
5 | "outDir": "build"
6 | },
7 | "include": [
8 | "src/**/*.ts",
9 | "test/**/*.ts"
10 | ],
11 | "references": [
12 | {
13 | "path": "../opentelemetry-api"
14 | },
15 | {
16 | "path": "../opentelemetry-context-async-hooks"
17 | },
18 | {
19 | "path": "../opentelemetry-context-base"
20 | },
21 | {
22 | "path": "../opentelemetry-core"
23 | },
24 | {
25 | "path": "../opentelemetry-node"
26 | },
27 | {
28 | "path": "../opentelemetry-semantic-conventions"
29 | },
30 | {
31 | "path": "../opentelemetry-tracing"
32 | }
33 | ]
34 | }
35 |
--------------------------------------------------------------------------------
/packages/opentelemetry-context-zone-peer-dep/src/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './ZoneContextManager';
18 | export * from './types';
19 |
--------------------------------------------------------------------------------
/packages/opentelemetry-context-zone/src/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from '@opentelemetry/context-zone-peer-dep';
18 | import 'zone.js';
19 |
--------------------------------------------------------------------------------
/packages/opentelemetry-exporter-collector-proto/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "rootDir": ".",
5 | "outDir": "build"
6 | },
7 | "include": [
8 | "src/**/*.ts",
9 | "test/**/*.ts"
10 | ],
11 | "references": [
12 | {
13 | "path": "../opentelemetry-api"
14 | },
15 | {
16 | "path": "../opentelemetry-api-metrics"
17 | },
18 | {
19 | "path": "../opentelemetry-core"
20 | },
21 | {
22 | "path": "../opentelemetry-exporter-collector"
23 | },
24 | {
25 | "path": "../opentelemetry-metrics"
26 | },
27 | {
28 | "path": "../opentelemetry-resources"
29 | },
30 | {
31 | "path": "../opentelemetry-tracing"
32 | }
33 | ]
34 | }
35 |
--------------------------------------------------------------------------------
/packages/opentelemetry-exporter-jaeger/src/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './jaeger';
18 | export { ExporterConfig } from './types';
19 |
--------------------------------------------------------------------------------
/packages/opentelemetry-instrumentation/test/node/node_modules/@opentelemetry/plugin-http-module/http-module.js:
--------------------------------------------------------------------------------
1 | Object.defineProperty(exports, "__esModule", { value: true });
2 | const { BasePlugin } = require('../../../BasePlugin');
3 | const shimmer = require("shimmer");
4 |
5 | class HttpModulePlugin extends BasePlugin {
6 | constructor() {
7 | super();
8 | this.moduleName = 'http';
9 | }
10 |
11 | patch() {
12 | shimmer.wrap(this._moduleExports, 'get', orig => () => 'patched');
13 | return this._moduleExports;
14 | }
15 |
16 | unpatch() {
17 | shimmer.unwrap(this._moduleExports, 'get');
18 | }
19 | }
20 | exports.HttpModulePlugin = HttpModulePlugin;
21 | const plugin = new HttpModulePlugin();
22 | exports.plugin = plugin;
23 |
--------------------------------------------------------------------------------
/packages/opentelemetry-exporter-collector-proto/src/types.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export enum ServiceClientType {
18 | SPANS,
19 | METRICS,
20 | }
21 |
--------------------------------------------------------------------------------
/packages/opentelemetry-exporter-prometheus/src/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './PrometheusExporter';
18 | export * from './export/types';
19 |
--------------------------------------------------------------------------------
/packages/opentelemetry-node/src/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export { NodeTracerConfig } from './config';
18 | export * from './NodeTracerProvider';
19 |
--------------------------------------------------------------------------------
/packages/opentelemetry-resources/src/platform/node/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './detect-resources';
18 | export * from './detectors';
19 |
--------------------------------------------------------------------------------
/metapackages/plugins-web-core/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@opentelemetry/plugins-web-core",
3 | "version": "0.17.0",
4 | "description": "Metapackage which bundles all opentelemetry web core plugins",
5 | "author": "OpenTelemetry Authors",
6 | "homepage": "https://github.com/open-telemetry/opentelemetry-js#readme",
7 | "license": "Apache-2.0",
8 | "publishConfig": {
9 | "access": "public"
10 | },
11 | "repository": {
12 | "type": "git",
13 | "url": "git+https://github.com/open-telemetry/opentelemetry-js.git"
14 | },
15 | "bugs": {
16 | "url": "https://github.com/open-telemetry/opentelemetry-js/issues"
17 | },
18 | "dependencies": {
19 | "@opentelemetry/instrumentation-xml-http-request": "^0.17.0"
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/packages/opentelemetry-plugin-grpc-js/src/client/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './loadPackageDefinition';
18 | export * from './patchClient';
19 |
--------------------------------------------------------------------------------
/packages/opentelemetry-plugin-http/src/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './http';
18 | export * from './types';
19 | export * from './utils';
20 |
--------------------------------------------------------------------------------
/packages/opentelemetry-api/src/version.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | // this is autogenerated file, see scripts/version-update.js
18 | export const VERSION = '0.17.0';
19 |
--------------------------------------------------------------------------------
/packages/opentelemetry-core/src/platform/node/timer-util.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | export function unrefTimer(timer: NodeJS.Timer): void {
17 | timer.unref();
18 | }
19 |
--------------------------------------------------------------------------------
/packages/opentelemetry-core/test/trace/fixtures/test-package/foo/bar/internal.d.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | export declare function internallyExportedFunction(): boolean;
17 |
--------------------------------------------------------------------------------
/packages/opentelemetry-instrumentation-http/src/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './http';
18 | export * from './types';
19 | export * from './utils';
20 |
--------------------------------------------------------------------------------
/packages/opentelemetry-resources/src/platform/node/detectors/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './EnvDetector';
18 | export * from './ProcessDetector';
19 |
--------------------------------------------------------------------------------
/packages/opentelemetry-web/src/version.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | // this is autogenerated file, see scripts/version-update.js
18 | export const VERSION = '0.17.0';
19 |
--------------------------------------------------------------------------------
/integration-tests/propagation-validation-server/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "propagation-validation-server",
3 | "version": "0.17.0",
4 | "description": "server for w3c tests",
5 | "main": "validation_server.js",
6 | "private": true,
7 | "repository": "open-telemetry/opentelemetry-js",
8 | "author": "OpenTelemetry Authors",
9 | "license": "Apache-2.0",
10 | "scripts": {
11 | "compile": "tsc --build"
12 | },
13 | "dependencies": {
14 | "@opentelemetry/api": "^0.17.0",
15 | "@opentelemetry/context-async-hooks": "^0.17.0",
16 | "@opentelemetry/core": "^0.17.0",
17 | "@opentelemetry/tracing": "^0.17.0",
18 | "axios": "0.21.1",
19 | "body-parser": "1.19.0",
20 | "express": "4.17.1"
21 | },
22 | "devDependencies": {
23 | "typescript": "4.1.3"
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/packages/opentelemetry-core/src/version.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | // this is autogenerated file, see scripts/version-update.js
18 | export const VERSION = '0.17.0';
19 |
--------------------------------------------------------------------------------
/packages/opentelemetry-instrumentation/src/platform/browser/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './instrumentation';
18 | export * from './old/autoLoader';
19 |
--------------------------------------------------------------------------------
/packages/opentelemetry-metrics/src/version.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | // this is autogenerated file, see scripts/version-update.js
18 | export const VERSION = '0.17.0';
19 |
--------------------------------------------------------------------------------
/packages/opentelemetry-node/src/version.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | // this is autogenerated file, see scripts/version-update.js
18 | export const VERSION = '0.17.0';
19 |
--------------------------------------------------------------------------------
/packages/opentelemetry-sdk-node/src/version.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | // this is autogenerated file, see scripts/version-update.js
18 | export const VERSION = '0.17.0';
19 |
--------------------------------------------------------------------------------
/packages/opentelemetry-tracing/src/version.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | // this is autogenerated file, see scripts/version-update.js
18 | export const VERSION = '0.17.0';
19 |
--------------------------------------------------------------------------------
/packages/opentelemetry-api-metrics/src/version.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | // this is autogenerated file, see scripts/version-update.js
18 | export const VERSION = '0.17.0';
19 |
--------------------------------------------------------------------------------
/packages/opentelemetry-context-base/src/version.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | // this is autogenerated file, see scripts/version-update.js
18 | export const VERSION = '0.17.0';
19 |
--------------------------------------------------------------------------------
/packages/opentelemetry-context-zone/src/version.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | // this is autogenerated file, see scripts/version-update.js
18 | export const VERSION = '0.17.0';
19 |
--------------------------------------------------------------------------------
/packages/opentelemetry-exporter-collector-grpc/src/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './CollectorTraceExporter';
18 | export * from './CollectorMetricExporter';
19 |
--------------------------------------------------------------------------------
/packages/opentelemetry-exporter-collector-proto/src/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './CollectorTraceExporter';
18 | export * from './CollectorMetricExporter';
19 |
--------------------------------------------------------------------------------
/packages/opentelemetry-grpc-utils/src/version.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | // this is autogenerated file, see scripts/version-update.js
18 | export const VERSION = '0.17.0';
19 |
--------------------------------------------------------------------------------
/packages/opentelemetry-plugin-grpc/src/version.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | // this is autogenerated file, see scripts/version-update.js
18 | export const VERSION = '0.17.0';
19 |
--------------------------------------------------------------------------------
/packages/opentelemetry-plugin-http/src/version.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | // this is autogenerated file, see scripts/version-update.js
18 | export const VERSION = '0.17.0';
19 |
--------------------------------------------------------------------------------
/packages/opentelemetry-plugin-https/src/version.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | // this is autogenerated file, see scripts/version-update.js
18 | export const VERSION = '0.17.0';
19 |
--------------------------------------------------------------------------------
/packages/opentelemetry-propagator-b3/src/version.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | // this is autogenerated file, see scripts/version-update.js
18 | export const VERSION = '0.17.0';
19 |
--------------------------------------------------------------------------------
/packages/opentelemetry-resources/src/version.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | // this is autogenerated file, see scripts/version-update.js
18 | export const VERSION = '0.17.0';
19 |
--------------------------------------------------------------------------------
/packages/opentelemetry-context-async-hooks/src/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './AsyncHooksContextManager';
18 | export * from './AsyncLocalStorageContextManager';
19 |
--------------------------------------------------------------------------------
/packages/opentelemetry-core/src/platform/node/performance.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | import { performance } from 'perf_hooks';
18 |
19 | export const otperformance = performance;
20 |
--------------------------------------------------------------------------------
/packages/opentelemetry-exporter-collector/src/version.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | // this is autogenerated file, see scripts/version-update.js
18 | export const VERSION = '0.17.0';
19 |
--------------------------------------------------------------------------------
/packages/opentelemetry-exporter-jaeger/src/version.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | // this is autogenerated file, see scripts/version-update.js
18 | export const VERSION = '0.17.0';
19 |
--------------------------------------------------------------------------------
/packages/opentelemetry-exporter-zipkin/src/version.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | // this is autogenerated file, see scripts/version-update.js
18 | export const VERSION = '0.17.0';
19 |
--------------------------------------------------------------------------------
/packages/opentelemetry-instrumentation/src/version.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | // this is autogenerated file, see scripts/version-update.js
18 | export const VERSION = '0.17.0';
19 |
--------------------------------------------------------------------------------
/packages/opentelemetry-metrics/src/export/aggregators/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './Histogram';
18 | export * from './LastValue';
19 | export * from './Sum';
20 |
--------------------------------------------------------------------------------
/packages/opentelemetry-plugin-grpc-js/src/version.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | // this is autogenerated file, see scripts/version-update.js
18 | export const VERSION = '0.17.0';
19 |
--------------------------------------------------------------------------------
/packages/opentelemetry-shim-opentracing/src/version.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | // this is autogenerated file, see scripts/version-update.js
18 | export const VERSION = '0.17.0';
19 |
--------------------------------------------------------------------------------
/packages/opentelemetry-context-async-hooks/src/version.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | // this is autogenerated file, see scripts/version-update.js
18 | export const VERSION = '0.17.0';
19 |
--------------------------------------------------------------------------------
/packages/opentelemetry-context-zone-peer-dep/src/version.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | // this is autogenerated file, see scripts/version-update.js
18 | export const VERSION = '0.17.0';
19 |
--------------------------------------------------------------------------------
/packages/opentelemetry-exporter-collector-grpc/src/version.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | // this is autogenerated file, see scripts/version-update.js
18 | export const VERSION = '0.17.0';
19 |
--------------------------------------------------------------------------------
/packages/opentelemetry-exporter-prometheus/src/version.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | // this is autogenerated file, see scripts/version-update.js
18 | export const VERSION = '0.17.0';
19 |
--------------------------------------------------------------------------------
/packages/opentelemetry-exporter-zipkin/src/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './platform';
18 | export { ExporterConfig } from './types';
19 | export * from './zipkin';
20 |
--------------------------------------------------------------------------------
/packages/opentelemetry-instrumentation-fetch/src/version.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | // this is autogenerated file, see scripts/version-update.js
18 | export const VERSION = '0.17.0';
19 |
--------------------------------------------------------------------------------
/packages/opentelemetry-instrumentation-grpc/src/version.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | // this is autogenerated file, see scripts/version-update.js
18 | export const VERSION = '0.17.0';
19 |
--------------------------------------------------------------------------------
/packages/opentelemetry-instrumentation-http/src/version.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | // this is autogenerated file, see scripts/version-update.js
18 | export const VERSION = '0.17.0';
19 |
--------------------------------------------------------------------------------
/packages/opentelemetry-resource-detector-aws/src/version.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | // this is autogenerated file, see scripts/version-update.js
18 | export const VERSION = '0.17.0';
19 |
--------------------------------------------------------------------------------
/packages/opentelemetry-resource-detector-gcp/src/version.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | // this is autogenerated file, see scripts/version-update.js
18 | export const VERSION = '0.17.0';
19 |
--------------------------------------------------------------------------------
/packages/opentelemetry-semantic-conventions/src/version.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | // this is autogenerated file, see scripts/version-update.js
18 | export const VERSION = '0.17.0';
19 |
--------------------------------------------------------------------------------
/packages/opentelemetry-exporter-collector-proto/src/version.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | // this is autogenerated file, see scripts/version-update.js
18 | export const VERSION = '0.17.0';
19 |
--------------------------------------------------------------------------------
/packages/opentelemetry-exporter-collector/src/platform/browser/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './CollectorTraceExporter';
18 | export * from './CollectorMetricExporter';
19 |
--------------------------------------------------------------------------------
/packages/opentelemetry-instrumentation-xml-http-request/src/version.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | // this is autogenerated file, see scripts/version-update.js
18 | export const VERSION = '0.17.0';
19 |
--------------------------------------------------------------------------------
/packages/opentelemetry-context-base/src/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export { createContextKey, ROOT_CONTEXT } from './context';
18 | export * from './NoopContextManager';
19 | export * from './types';
20 |
--------------------------------------------------------------------------------
/packages/opentelemetry-plugin-grpc/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "rootDir": ".",
5 | "outDir": "build"
6 | },
7 | "include": [
8 | "src/**/*.ts",
9 | "test/**/*.ts"
10 | ],
11 | "references": [
12 | {
13 | "path": "../opentelemetry-api"
14 | },
15 | {
16 | "path": "../opentelemetry-context-async-hooks"
17 | },
18 | {
19 | "path": "../opentelemetry-context-base"
20 | },
21 | {
22 | "path": "../opentelemetry-core"
23 | },
24 | {
25 | "path": "../opentelemetry-grpc-utils"
26 | },
27 | {
28 | "path": "../opentelemetry-node"
29 | },
30 | {
31 | "path": "../opentelemetry-semantic-conventions"
32 | },
33 | {
34 | "path": "../opentelemetry-tracing"
35 | }
36 | ]
37 | }
38 |
--------------------------------------------------------------------------------
/packages/opentelemetry-resource-detector-gcp/src/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './detectors';
18 |
19 | // Internal - used for tests only
20 | export { resetIsAvailableCache } from 'gcp-metadata';
21 |
--------------------------------------------------------------------------------
/packages/opentelemetry-plugin-grpc-js/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "rootDir": ".",
5 | "outDir": "build"
6 | },
7 | "include": [
8 | "src/**/*.ts",
9 | "test/**/*.ts"
10 | ],
11 | "references": [
12 | {
13 | "path": "../opentelemetry-api"
14 | },
15 | {
16 | "path": "../opentelemetry-context-async-hooks"
17 | },
18 | {
19 | "path": "../opentelemetry-context-base"
20 | },
21 | {
22 | "path": "../opentelemetry-core"
23 | },
24 | {
25 | "path": "../opentelemetry-grpc-utils"
26 | },
27 | {
28 | "path": "../opentelemetry-node"
29 | },
30 | {
31 | "path": "../opentelemetry-semantic-conventions"
32 | },
33 | {
34 | "path": "../opentelemetry-tracing"
35 | }
36 | ]
37 | }
38 |
--------------------------------------------------------------------------------
/packages/opentelemetry-plugin-https/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "rootDir": ".",
5 | "outDir": "build"
6 | },
7 | "include": [
8 | "src/**/*.ts",
9 | "test/**/*.ts"
10 | ],
11 | "references": [
12 | {
13 | "path": "../opentelemetry-api"
14 | },
15 | {
16 | "path": "../opentelemetry-context-async-hooks"
17 | },
18 | {
19 | "path": "../opentelemetry-context-base"
20 | },
21 | {
22 | "path": "../opentelemetry-core"
23 | },
24 | {
25 | "path": "../opentelemetry-node"
26 | },
27 | {
28 | "path": "../opentelemetry-plugin-http"
29 | },
30 | {
31 | "path": "../opentelemetry-semantic-conventions"
32 | },
33 | {
34 | "path": "../opentelemetry-tracing"
35 | }
36 | ]
37 | }
38 |
--------------------------------------------------------------------------------
/packages/opentelemetry-propagator-b3/src/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './B3Propagator';
18 | export * from './B3SinglePropagator';
19 | export * from './B3MultiPropagator';
20 | export * from './types';
21 |
--------------------------------------------------------------------------------
/packages/opentelemetry-instrumentation-http/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "rootDir": ".",
5 | "outDir": "build"
6 | },
7 | "include": [
8 | "src/**/*.ts",
9 | "test/**/*.ts"
10 | ],
11 | "references": [
12 | {
13 | "path": "../opentelemetry-api"
14 | },
15 | {
16 | "path": "../opentelemetry-context-async-hooks"
17 | },
18 | {
19 | "path": "../opentelemetry-context-base"
20 | },
21 | {
22 | "path": "../opentelemetry-core"
23 | },
24 | {
25 | "path": "../opentelemetry-instrumentation"
26 | },
27 | {
28 | "path": "../opentelemetry-node"
29 | },
30 | {
31 | "path": "../opentelemetry-semantic-conventions"
32 | },
33 | {
34 | "path": "../opentelemetry-tracing"
35 | }
36 | ]
37 | }
38 |
--------------------------------------------------------------------------------
/packages/opentelemetry-resources/src/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './Resource';
18 | export * from './platform';
19 | export * from './constants';
20 | export * from './types';
21 | export * from './config';
22 |
--------------------------------------------------------------------------------
/packages/opentelemetry-api/src/baggage/internal/symbol.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | /**
18 | * Symbol used to make BaggageEntryMetadata an opaque type
19 | */
20 | export const baggageEntryMetadataSymbol = Symbol('BaggageEntryMetadata');
21 |
--------------------------------------------------------------------------------
/packages/opentelemetry-web/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "rootDir": ".",
5 | "outDir": "build",
6 | "skipLibCheck": true
7 | },
8 | "include": [
9 | "src/**/*.ts",
10 | "test/**/*.ts"
11 | ],
12 | "references": [
13 | {
14 | "path": "../opentelemetry-api"
15 | },
16 | {
17 | "path": "../opentelemetry-context-base"
18 | },
19 | {
20 | "path": "../opentelemetry-context-zone"
21 | },
22 | {
23 | "path": "../opentelemetry-core"
24 | },
25 | {
26 | "path": "../opentelemetry-propagator-b3"
27 | },
28 | {
29 | "path": "../opentelemetry-resources"
30 | },
31 | {
32 | "path": "../opentelemetry-semantic-conventions"
33 | },
34 | {
35 | "path": "../opentelemetry-tracing"
36 | }
37 | ]
38 | }
39 |
--------------------------------------------------------------------------------
/packages/opentelemetry-core/src/ExportResult.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export interface ExportResult {
18 | code: ExportResultCode;
19 | error?: Error;
20 | }
21 |
22 | export enum ExportResultCode {
23 | SUCCESS,
24 | FAILED,
25 | }
26 |
--------------------------------------------------------------------------------
/packages/opentelemetry-instrumentation/src/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './autoLoader';
18 | export * from './platform/index';
19 | export * from './types';
20 | export * from './types_internal';
21 | export * from './utils';
22 |
--------------------------------------------------------------------------------
/examples/collector-exporter-node/docker/docker-compose.yaml:
--------------------------------------------------------------------------------
1 | version: "3"
2 | services:
3 | # Collector
4 | collector:
5 | image: otel/opentelemetry-collector:0.16.0
6 | # image: otel/opentelemetry-collector:latest
7 | command: ["--config=/conf/collector-config.yaml", "--log-level=DEBUG"]
8 | volumes:
9 | - ./collector-config.yaml:/conf/collector-config.yaml
10 | ports:
11 | - "9464:9464"
12 | - "4317:4317"
13 | - "55681:55681"
14 | depends_on:
15 | - zipkin-all-in-one
16 |
17 | # Zipkin
18 | zipkin-all-in-one:
19 | image: openzipkin/zipkin:latest
20 | ports:
21 | - "9411:9411"
22 |
23 | # Prometheus
24 | prometheus:
25 | container_name: prometheus
26 | image: prom/prometheus:latest
27 | volumes:
28 | - ./prometheus.yaml:/etc/prometheus/prometheus.yml
29 | ports:
30 | - "9090:9090"
31 |
--------------------------------------------------------------------------------
/packages/opentelemetry-resource-detector-aws/src/detectors/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './AwsEc2Detector';
18 | export * from './AwsBeanstalkDetector';
19 | export * from './AwsEcsDetector';
20 | export * from './AwsEksDetector';
21 |
--------------------------------------------------------------------------------
/examples/tracer-web/examples/zipkin/index.js:
--------------------------------------------------------------------------------
1 | import { ConsoleSpanExporter, SimpleSpanProcessor } from '@opentelemetry/tracing';
2 | import { WebTracerProvider } from '@opentelemetry/web';
3 | import { ZipkinExporter } from '@opentelemetry/exporter-zipkin';
4 |
5 | const provider = new WebTracerProvider();
6 | provider.addSpanProcessor(new SimpleSpanProcessor(new ConsoleSpanExporter()));
7 | provider.addSpanProcessor(new SimpleSpanProcessor(new ZipkinExporter()));
8 |
9 | provider.register();
10 |
11 | const tracer = provider.getTracer('example-tracer-web');
12 |
13 | const prepareClickEvent = () => {
14 | const element = document.getElementById('button1');
15 |
16 | const onClick = () => {
17 | const span = tracer.startSpan('foo');
18 | span.end();
19 | };
20 | element.addEventListener('click', onClick);
21 | };
22 |
23 | window.addEventListener('load', prepareClickEvent);
24 |
--------------------------------------------------------------------------------
/packages/opentelemetry-api/src/trace/link_context.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | import { SpanContext } from './span_context';
18 |
19 | /**
20 | * A pointer to another span.
21 | */
22 | export type LinkContext = Pick;
23 |
--------------------------------------------------------------------------------
/packages/opentelemetry-instrumentation-fetch/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "rootDir": ".",
5 | "outDir": "build",
6 | "skipLibCheck": true
7 | },
8 | "include": [
9 | "src/**/*.ts",
10 | "test/**/*.ts"
11 | ],
12 | "references": [
13 | {
14 | "path": "../opentelemetry-api"
15 | },
16 | {
17 | "path": "../opentelemetry-context-zone"
18 | },
19 | {
20 | "path": "../opentelemetry-core"
21 | },
22 | {
23 | "path": "../opentelemetry-instrumentation"
24 | },
25 | {
26 | "path": "../opentelemetry-propagator-b3"
27 | },
28 | {
29 | "path": "../opentelemetry-semantic-conventions"
30 | },
31 | {
32 | "path": "../opentelemetry-tracing"
33 | },
34 | {
35 | "path": "../opentelemetry-web"
36 | }
37 | ]
38 | }
39 |
--------------------------------------------------------------------------------
/packages/opentelemetry-api/src/trace/trace_flags.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | export enum TraceFlags {
17 | /** Represents no flag set. */
18 | NONE = 0x0,
19 | /** Bit to represent whether trace is sampled in trace flags. */
20 | SAMPLED = 0x1 << 0,
21 | }
22 |
--------------------------------------------------------------------------------
/packages/opentelemetry-web/src/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './WebTracerProvider';
18 | export * from './StackContextManager';
19 | export * from './enums/PerformanceTimingNames';
20 | export * from './types';
21 | export * from './utils';
22 |
--------------------------------------------------------------------------------
/packages/opentelemetry-instrumentation-xml-http-request/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "rootDir": ".",
5 | "outDir": "build",
6 | "skipLibCheck": true
7 | },
8 | "include": [
9 | "src/**/*.ts",
10 | "test/**/*.ts"
11 | ],
12 | "references": [
13 | {
14 | "path": "../opentelemetry-api"
15 | },
16 | {
17 | "path": "../opentelemetry-context-zone"
18 | },
19 | {
20 | "path": "../opentelemetry-core"
21 | },
22 | {
23 | "path": "../opentelemetry-instrumentation"
24 | },
25 | {
26 | "path": "../opentelemetry-propagator-b3"
27 | },
28 | {
29 | "path": "../opentelemetry-semantic-conventions"
30 | },
31 | {
32 | "path": "../opentelemetry-tracing"
33 | },
34 | {
35 | "path": "../opentelemetry-web"
36 | }
37 | ]
38 | }
39 |
--------------------------------------------------------------------------------
/getting-started/traced-example/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@opentelemetry/getting-started-traced-example",
3 | "version": "0.17.0",
4 | "description": "This repository provides everything required to follow the OpenTelemetry Getting Started Guide",
5 | "main": "app.js",
6 | "scripts": {
7 | "start": "node -r ./tracing.js app.js"
8 | },
9 | "author": "OpenTelemetry Authors",
10 | "license": "Apache-2.0",
11 | "dependencies": {
12 | "@opentelemetry/core": "^0.14.0",
13 | "@opentelemetry/exporter-zipkin": "^0.14.0",
14 | "@opentelemetry/node": "^0.14.0",
15 | "@opentelemetry/instrumentation": "^0.17.0",
16 | "@opentelemetry/plugin-express": "^0.12.1",
17 | "@opentelemetry/plugin-http": "^0.14.0",
18 | "@opentelemetry/plugin-https": "^0.14.0",
19 | "@opentelemetry/tracing": "^0.14.0",
20 | "axios": "^0.21.0",
21 | "express": "^4.17.1"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/packages/opentelemetry-api/src/common/Time.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | export type HrTime = [number, number];
17 |
18 | /**
19 | * Defines TimeInput.
20 | *
21 | * hrtime, epoch milliseconds, performance.now() or Date
22 | */
23 | export type TimeInput = HrTime | number | Date;
24 |
--------------------------------------------------------------------------------
/getting-started/traced-example/tracing.js:
--------------------------------------------------------------------------------
1 | "use strict";
2 |
3 | const { NodeTracerProvider } = require("@opentelemetry/node");
4 | const { SimpleSpanProcessor } = require("@opentelemetry/tracing");
5 | const { ZipkinExporter } = require("@opentelemetry/exporter-zipkin");
6 | const { registerInstrumentations } = require('@opentelemetry/instrumentation');
7 |
8 | const provider = new NodeTracerProvider();
9 |
10 | provider.addSpanProcessor(
11 | new SimpleSpanProcessor(
12 | new ZipkinExporter({
13 | serviceName: "getting-started"
14 | // If you are running your tracing backend on another host,
15 | // you can point to it using the `url` parameter of the
16 | // exporter config.
17 | })
18 | )
19 | );
20 |
21 | provider.register();
22 |
23 | // load old default plugins
24 | registerInstrumentations({
25 | tracerProvider: provider,
26 | });
27 |
28 | console.log("tracing initialized");
29 |
--------------------------------------------------------------------------------
/packages/opentelemetry-api/test/index-webpack.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | const testsContext = require.context('.', true, /test$/);
17 | testsContext.keys().forEach(testsContext);
18 |
19 | const srcContext = require.context('.', true, /src$/);
20 | srcContext.keys().forEach(srcContext);
21 |
--------------------------------------------------------------------------------
/packages/opentelemetry-web/test/index-webpack.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | const testsContext = require.context('.', true, /test$/);
17 | testsContext.keys().forEach(testsContext);
18 |
19 | const srcContext = require.context('.', true, /src$/);
20 | srcContext.keys().forEach(srcContext);
21 |
--------------------------------------------------------------------------------
/.github/PULL_REQUEST_TEMPLATE.md:
--------------------------------------------------------------------------------
1 |
15 |
16 | ## Which problem is this PR solving?
17 |
18 | -
19 |
20 | ## Short description of the changes
21 |
22 | -
23 |
--------------------------------------------------------------------------------
/packages/opentelemetry-tracing/test/index-webpack.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | const testsContext = require.context('.', true, /test$/);
17 | testsContext.keys().forEach(testsContext);
18 |
19 | const srcContext = require.context('.', true, /src$/);
20 | srcContext.keys().forEach(srcContext);
21 |
--------------------------------------------------------------------------------
/packages/opentelemetry-api-metrics/test/index-webpack.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | const testsContext = require.context('.', true, /test$/);
17 | testsContext.keys().forEach(testsContext);
18 |
19 | const srcContext = require.context('.', true, /src$/);
20 | srcContext.keys().forEach(srcContext);
21 |
--------------------------------------------------------------------------------
/packages/opentelemetry-exporter-collector/src/platform/node/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './CollectorTraceExporter';
18 | export * from './CollectorMetricExporter';
19 | export * from './CollectorExporterNodeBase';
20 | export * from './util';
21 | export * from './types';
22 |
--------------------------------------------------------------------------------
/getting-started/ts-example/traced-example/tracing.ts:
--------------------------------------------------------------------------------
1 | import { NodeTracerProvider } from '@opentelemetry/node';
2 |
3 | import { SimpleSpanProcessor } from '@opentelemetry/tracing';
4 | import { ZipkinExporter } from '@opentelemetry/exporter-zipkin';
5 | // For Jaeger, use the following line instead:
6 | // import { JaegerExporter } from '@opentelemetry/exporter-jaeger';
7 |
8 | const provider: NodeTracerProvider = new NodeTracerProvider();
9 |
10 | provider.register();
11 |
12 | provider.addSpanProcessor(
13 | new SimpleSpanProcessor(
14 | new ZipkinExporter({
15 | // For Jaeger, use the following line instead:
16 | // new JaegerExporter({
17 | serviceName: 'getting-started',
18 | // If you are running your tracing backend on another host,
19 | // you can point to it using the `url` parameter of the
20 | // exporter config.
21 | }),
22 | ),
23 | );
24 |
25 | console.log('tracing initialized');
26 |
--------------------------------------------------------------------------------
/packages/opentelemetry-context-zone-peer-dep/test/index-webpack.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | const testsContext = require.context('.', true, /test$/);
17 | testsContext.keys().forEach(testsContext);
18 |
19 | const srcContext = require.context('.', true, /src$/);
20 | srcContext.keys().forEach(srcContext);
21 |
--------------------------------------------------------------------------------
/packages/opentelemetry-instrumentation-fetch/test/index-webpack.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | const testsContext = require.context('.', true, /test$/);
17 | testsContext.keys().forEach(testsContext);
18 |
19 | const srcContext = require.context('.', true, /src$/);
20 | srcContext.keys().forEach(srcContext);
21 |
--------------------------------------------------------------------------------
/packages/opentelemetry-instrumentation-grpc/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.base.json",
3 | "compilerOptions": {
4 | "rootDir": ".",
5 | "outDir": "build"
6 | },
7 | "include": [
8 | "src/**/*.ts",
9 | "test/**/*.ts"
10 | ],
11 | "references": [
12 | {
13 | "path": "../opentelemetry-api"
14 | },
15 | {
16 | "path": "../opentelemetry-api-metrics"
17 | },
18 | {
19 | "path": "../opentelemetry-context-async-hooks"
20 | },
21 | {
22 | "path": "../opentelemetry-context-base"
23 | },
24 | {
25 | "path": "../opentelemetry-core"
26 | },
27 | {
28 | "path": "../opentelemetry-instrumentation"
29 | },
30 | {
31 | "path": "../opentelemetry-node"
32 | },
33 | {
34 | "path": "../opentelemetry-semantic-conventions"
35 | },
36 | {
37 | "path": "../opentelemetry-tracing"
38 | }
39 | ]
40 | }
41 |
--------------------------------------------------------------------------------
/packages/opentelemetry-instrumentation/src/platform/node/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | export * from './instrumentation';
17 | export * from './instrumentationNodeModuleDefinition';
18 | export * from './instrumentationNodeModuleFile';
19 | export * from './old/autoLoader';
20 | export * from './types';
21 |
--------------------------------------------------------------------------------
/packages/opentelemetry-semantic-conventions/src/trace/exception.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export const ExceptionAttribute = {
18 | MESSAGE: 'exception.message',
19 | STACKTRACE: 'exception.stacktrace',
20 | TYPE: 'exception.type',
21 | };
22 |
23 | export const ExceptionEventName = 'exception';
24 |
--------------------------------------------------------------------------------
/metapackages/plugins-node-core/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@opentelemetry/plugins-node-core",
3 | "version": "0.17.0",
4 | "description": "Metapackage which bundles all opentelemetry node core plugins",
5 | "author": "OpenTelemetry Authors",
6 | "homepage": "https://github.com/open-telemetry/opentelemetry-js#readme",
7 | "license": "Apache-2.0",
8 | "publishConfig": {
9 | "access": "public"
10 | },
11 | "repository": {
12 | "type": "git",
13 | "url": "git+https://github.com/open-telemetry/opentelemetry-js.git"
14 | },
15 | "bugs": {
16 | "url": "https://github.com/open-telemetry/opentelemetry-js/issues"
17 | },
18 | "dependencies": {
19 | "@opentelemetry/plugin-grpc": "^0.17.0",
20 | "@opentelemetry/plugin-grpc-js": "^0.17.0",
21 | "@opentelemetry/plugin-http": "^0.17.0",
22 | "@opentelemetry/plugin-https": "^0.17.0"
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/packages/opentelemetry-api-metrics/src/types/Observation.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | import { BaseObserver } from './Metric';
18 |
19 | /**
20 | * Interface for updating value of certain value observer
21 | */
22 | export interface Observation {
23 | observer: BaseObserver;
24 | value: number;
25 | }
26 |
--------------------------------------------------------------------------------
/packages/opentelemetry-api/src/platform/node/globalThis.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | /** only globals that common to node and browsers are allowed */
18 | // eslint-disable-next-line node/no-unsupported-features/es-builtins
19 | export const _globalThis = typeof globalThis === 'object' ? globalThis : global;
20 |
--------------------------------------------------------------------------------
/packages/opentelemetry-instrumentation-fetch/src/enums/AttributeNames.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | /**
18 | * https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/trace/semantic_conventions/http.md
19 | */
20 | export enum AttributeNames {
21 | COMPONENT = 'component',
22 | }
23 |
--------------------------------------------------------------------------------
/packages/opentelemetry-instrumentation-xml-http-request/test/index-webpack.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | const testsContext = require.context('.', true, /test$/);
17 | testsContext.keys().forEach(testsContext);
18 |
19 | const srcContext = require.context('.', true, /src$/);
20 | srcContext.keys().forEach(srcContext);
21 |
--------------------------------------------------------------------------------
/packages/opentelemetry-propagator-b3/src/common.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | import { createContextKey } from '@opentelemetry/api';
18 |
19 | /** shared context for storing an extracted b3 debug flag */
20 | export const B3_DEBUG_FLAG_KEY = createContextKey(
21 | 'OpenTelemetry Context Key B3 Debug Flag'
22 | );
23 |
--------------------------------------------------------------------------------
/packages/opentelemetry-api-metrics/src/platform/node/globalThis.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | /** only globals that common to node and browsers are allowed */
18 | // eslint-disable-next-line node/no-unsupported-features/es-builtins
19 | export const _globalThis = typeof globalThis === 'object' ? globalThis : global;
20 |
--------------------------------------------------------------------------------
/packages/opentelemetry-instrumentation-xml-http-request/src/enums/EventNames.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export enum EventNames {
18 | METHOD_OPEN = 'open',
19 | METHOD_SEND = 'send',
20 | EVENT_ABORT = 'abort',
21 | EVENT_ERROR = 'error',
22 | EVENT_LOAD = 'loaded',
23 | EVENT_TIMEOUT = 'timeout',
24 | }
25 |
--------------------------------------------------------------------------------
/examples/https/server-key.pem:
--------------------------------------------------------------------------------
1 | -----BEGIN RSA PRIVATE KEY-----
2 | MIICXQIBAAKBgQC4X4tXcCMgtSYWuDf4/1bZTz4vo/kmUBmaizVVYM8xmO/nHN1Z
3 | AskmQ8l4d2fv37afQwynR0brSUBNEeKXkg7rLAvyEAySs7ijfzvUurZzZYFK+WGS
4 | 0RDcSxUiSGOXCJLcudCKxIZTeUHgyT/KeMq2KvSejNMs8n3aiFiNwgam8wIDAQAB
5 | AoGBAKBztcYQduGeBFm9VCjDvgc8KTg4kTlAeCfAglec+nOFTzJoMlGmVPuR/qFx
6 | +OgOXtXW+goRw6w7gVQQ/os9tvCCp7awSC5UCfPejHh6bW2B0BF2lZJ6B9y+u5Fa
7 | /p8oKoJGcC4eagVnDojuoYJHSqWBf7d7V/U54NpxwgBTsHAhAkEA8PJROgWzjMl2
8 | Gs5j8oBldEqzrC/d4K1uMEvCTb4RJ+t6jWq+Ug/vqvCfIcLfxHbOmTbOHTfhpv/d
9 | NUf9eDyBGwJBAMPkZaHP5vPDd900MqypLVasollzxgPnMUg35EEQJLAbb/5xG3X9
10 | ZbaVDTRtLQYNFvDZLlTpRpCPxZCgrn9hJwkCQQDPEVChLrkpqxFm5CydAZ8vG+vh
11 | dJmYNzPVKaZorYmM5yBBXJUHbU6pd3UqzJEGBJx0q9bi4V156bYvzhiVNlo1AkBu
12 | 1hbvFCwPtoRmg3c8nEhL50fApzHd2XzX6M/cRF8Nyah3ZdXsz6AyS2l6RV+ZMeTO
13 | B4QghRDpEH/vUgsJhZXJAkB5GQZPJh6/kozc5+Ffc60ThN/58SX0KEFeKnWRlzfr
14 | vfBXwcmaz1oNXN+kcWdLnKbr/tx+3UQ6weRRmeYX/hOi
15 | -----END RSA PRIVATE KEY-----
16 |
--------------------------------------------------------------------------------
/packages/opentelemetry-api-metrics/src/types/ObserverResult.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | import { Labels } from './Metric';
18 |
19 | /**
20 | * Interface that is being used in callback function for Observer Metric
21 | */
22 | export interface ObserverResult {
23 | observe(value: number, labels: Labels): void;
24 | }
25 |
--------------------------------------------------------------------------------
/packages/opentelemetry-api/src/platform/browser/globalThis.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | /** only globals that common to node and browsers are allowed */
18 | // eslint-disable-next-line node/no-unsupported-features/es-builtins, no-undef
19 | export const _globalThis = typeof globalThis === 'object' ? globalThis : window;
20 |
--------------------------------------------------------------------------------
/packages/opentelemetry-core/src/platform/node/sdk-info.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | import { VERSION } from '../../version';
18 |
19 | /** Constants describing the SDK in use */
20 | export const SDK_INFO = {
21 | NAME: 'opentelemetry',
22 | RUNTIME: 'node',
23 | LANGUAGE: 'nodejs',
24 | VERSION: VERSION,
25 | };
26 |
--------------------------------------------------------------------------------
/packages/opentelemetry-resources/src/config.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | import type { Detector } from './types';
18 |
19 | /**
20 | * ResourceDetectionConfig provides an interface for configuring resource auto-detection.
21 | */
22 | export interface ResourceDetectionConfig {
23 | detectors?: Array;
24 | }
25 |
--------------------------------------------------------------------------------
/packages/opentelemetry-api-metrics/src/platform/browser/globalThis.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | /** only globals that common to node and browsers are allowed */
18 | // eslint-disable-next-line node/no-unsupported-features/es-builtins, no-undef
19 | export const _globalThis = typeof globalThis === 'object' ? globalThis : window;
20 |
--------------------------------------------------------------------------------
/packages/opentelemetry-core/src/platform/browser/sdk-info.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | import { VERSION } from '../../version';
18 |
19 | /** Constants describing the SDK in use */
20 | export const SDK_INFO = {
21 | NAME: 'opentelemetry',
22 | RUNTIME: 'browser',
23 | LANGUAGE: 'webjs',
24 | VERSION: VERSION,
25 | };
26 |
--------------------------------------------------------------------------------
/packages/opentelemetry-core/src/platform/node/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './BasePlugin';
18 | export * from './environment';
19 | export * from './hex-to-base64';
20 | export * from './RandomIdGenerator';
21 | export * from './performance';
22 | export * from './sdk-info';
23 | export * from './timer-util';
24 |
--------------------------------------------------------------------------------
/packages/opentelemetry-semantic-conventions/src/trace/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './database';
18 | export * from './exception';
19 | export * from './general';
20 | export * from './http';
21 | export * from './os';
22 | export * from './rpc';
23 | export * from './faas';
24 | export * from './messaging';
25 |
--------------------------------------------------------------------------------
/packages/template/karma.conf.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | const karmaWebpackConfig = require('../../karma.webpack');
18 | const karmaBaseConfig = require('../../karma.base');
19 |
20 | module.exports = (config) => {
21 | config.set(Object.assign({}, karmaBaseConfig, {
22 | webpack: karmaWebpackConfig
23 | }))
24 | };
25 |
--------------------------------------------------------------------------------
/packages/opentelemetry-api/karma.conf.js:
--------------------------------------------------------------------------------
1 | /*!
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | const karmaWebpackConfig = require('../../karma.webpack');
18 | const karmaBaseConfig = require('../../karma.base');
19 |
20 | module.exports = (config) => {
21 | config.set(Object.assign({}, karmaBaseConfig, {
22 | webpack: karmaWebpackConfig
23 | }))
24 | };
25 |
--------------------------------------------------------------------------------
/packages/opentelemetry-core/src/platform/browser/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright The OpenTelemetry Authors
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | export * from './BasePlugin';
18 | export * from './environment';
19 | export * from './hex-to-base64';
20 | export * from './RandomIdGenerator';
21 | export * from './performance';
22 | export * from './sdk-info';
23 | export * from './timer-util';
24 |
--------------------------------------------------------------------------------