Skip to content

Commit

Permalink
Merge branch 'main' into zipkin-span-status
Browse files Browse the repository at this point in the history
  • Loading branch information
vmarchaud authored Oct 9, 2021
2 parents 2f9fe69 + 0c7f1c3 commit 06d880b
Show file tree
Hide file tree
Showing 19 changed files with 108 additions and 57 deletions.
36 changes: 19 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,23 +47,25 @@ This is the JavaScript version of [OpenTelemetry](https://opentelemetry.io/), a

## Compatibility Matrix

| API Version | Core version | Contrib Version |
| ----------- |--------------|-------------------------|
| 1.0.x | 0.25.x | ------ |
| 1.0.x | 0.24.x | 0.24.x |
| 1.0.x | 0.23.x | 0.23.x |
| 1.0.x | 0.22.x | 0.22.x |
| 0.21.x | 0.21.x | 0.21.x |
| 0.20.x | 0.20.x | 0.20.x |
| v1.0.0-rc.3 | 0.19.x | 0.16.x |
| 0.18.x | 0.18.x | 0.14.x |
| | 0.17.x | ------ |
| | 0.16.x | ------ |
| | 0.15.x | 0.13.x |
| | 0.14.x | 0.12.x |
| | 0.13.x | ------ |
| | 0.12.x | 0.11.x |
| | 0.11.x | 0.10.x |
| API Version | Core version | Experimental Packages | Contrib Version |
| ----------- |--------------| --------------------- |-------------------------|
| 1.0.x | 1.x | 0.26.x | ------ |
| 1.0.x | 0.26.x | ----- | ------ |
| 1.0.x | 0.25.x | ----- | ------ |
| 1.0.x | 0.24.x | ----- | 0.24.x |
| 1.0.x | 0.23.x | ----- | 0.23.x |
| 1.0.x | 0.22.x | ----- | 0.22.x |
| 0.21.x | 0.21.x | ----- | 0.21.x |
| 0.20.x | 0.20.x | ----- | 0.20.x |
| v1.0.0-rc.3 | 0.19.x | ----- | 0.16.x |
| 0.18.x | 0.18.x | ----- | 0.14.x |
| | 0.17.x | ----- | ------ |
| | 0.16.x | ----- | ------ |
| | 0.15.x | ----- | 0.13.x |
| | 0.14.x | ----- | 0.12.x |
| | 0.13.x | ----- | ------ |
| | 0.12.x | ----- | 0.11.x |
| | 0.11.x | ----- | 0.10.x |

## Versioning

Expand Down
2 changes: 1 addition & 1 deletion experimental/backwards-compatability/node10/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"test:backcompat": "tsc --noEmit index.ts && tsc --noEmit --esModuleInterop index.ts"
},
"dependencies": {
"@opentelemetry/sdk-node": "0.25.0",
"@opentelemetry/sdk-node": "0.26.0",
"@opentelemetry/sdk-trace-base": "1.0.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion experimental/backwards-compatability/node12/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"test:backcompat": "tsc --noEmit index.ts && tsc --noEmit --esModuleInterop index.ts"
},
"dependencies": {
"@opentelemetry/sdk-node": "0.25.0",
"@opentelemetry/sdk-node": "0.26.0",
"@opentelemetry/sdk-trace-base": "1.0.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion experimental/backwards-compatability/node8/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"test:backcompat": "tsc --noEmit index.ts && tsc --noEmit --esModuleInterop index.ts"
},
"dependencies": {
"@opentelemetry/sdk-node": "0.25.0",
"@opentelemetry/sdk-node": "0.26.0",
"@opentelemetry/sdk-trace-base": "1.0.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion experimental/lerna.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"lerna": "3.13.4",
"version": "0.25.0",
"version": "0.26.0",
"npmClient": "npm",
"packages": [
"packages/*",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@opentelemetry/api-metrics",
"version": "0.25.0",
"version": "0.26.0",
"description": "Public metrics API for OpenTelemetry",
"main": "build/src/index.js",
"module": "build/esm/index.js",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@opentelemetry/exporter-otlp-grpc",
"version": "0.25.0",
"version": "0.26.0",
"description": "OpenTelemetry Collector Exporter allows user to send collected traces to the OpenTelemetry Collector",
"main": "build/src/index.js",
"types": "build/src/index.d.ts",
Expand Down Expand Up @@ -49,7 +49,7 @@
"devDependencies": {
"@babel/core": "7.15.0",
"@opentelemetry/api": "^1.0.2",
"@opentelemetry/api-metrics": "0.25.0",
"@opentelemetry/api-metrics": "0.26.0",
"@types/mocha": "8.2.3",
"@types/node": "14.17.11",
"@types/sinon": "10.0.2",
Expand All @@ -70,9 +70,9 @@
"@grpc/grpc-js": "^1.3.7",
"@grpc/proto-loader": "^0.6.4",
"@opentelemetry/core": "1.0.0",
"@opentelemetry/exporter-otlp-http": "0.25.0",
"@opentelemetry/sdk-metrics-base": "0.25.0",
"@opentelemetry/exporter-otlp-http": "0.26.0",
"@opentelemetry/resources": "1.0.0",
"@opentelemetry/sdk-metrics-base": "0.26.0",
"@opentelemetry/sdk-trace-base": "1.0.0"
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@opentelemetry/exporter-otlp-http",
"version": "0.25.0",
"version": "0.26.0",
"description": "OpenTelemetry Collector Exporter allows user to send collected traces to the OpenTelemetry Collector",
"main": "build/src/index.js",
"module": "build/esm/index.js",
Expand Down Expand Up @@ -86,10 +86,10 @@
"@opentelemetry/api": "^1.0.2"
},
"dependencies": {
"@opentelemetry/api-metrics": "0.25.0",
"@opentelemetry/api-metrics": "0.26.0",
"@opentelemetry/core": "1.0.0",
"@opentelemetry/resources": "1.0.0",
"@opentelemetry/sdk-metrics-base": "0.25.0",
"@opentelemetry/sdk-metrics-base": "0.26.0",
"@opentelemetry/sdk-trace-base": "1.0.0"
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@opentelemetry/exporter-otlp-proto",
"version": "0.25.0",
"version": "0.26.0",
"description": "OpenTelemetry Collector Exporter allows user to send collected traces to the OpenTelemetry Collector using protobuf over HTTP",
"main": "build/src/index.js",
"types": "build/src/index.d.ts",
Expand Down Expand Up @@ -49,7 +49,7 @@
"devDependencies": {
"@babel/core": "7.15.0",
"@opentelemetry/api": "^1.0.2",
"@opentelemetry/api-metrics": "0.25.0",
"@opentelemetry/api-metrics": "0.26.0",
"@types/mocha": "8.2.3",
"@types/node": "14.17.11",
"@types/sinon": "10.0.2",
Expand All @@ -69,9 +69,9 @@
"dependencies": {
"@grpc/proto-loader": "^0.6.4",
"@opentelemetry/core": "1.0.0",
"@opentelemetry/exporter-otlp-http": "0.25.0",
"@opentelemetry/sdk-metrics-base": "0.25.0",
"@opentelemetry/exporter-otlp-http": "0.26.0",
"@opentelemetry/resources": "1.0.0",
"@opentelemetry/sdk-metrics-base": "0.26.0",
"@opentelemetry/sdk-trace-base": "1.0.0",
"protobufjs": "^6.9.0"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@opentelemetry/exporter-prometheus",
"version": "0.25.0",
"version": "0.26.0",
"description": "OpenTelemetry Exporter Prometheus provides a metrics endpoint for Prometheus",
"main": "build/src/index.js",
"types": "build/src/index.d.ts",
Expand Down Expand Up @@ -57,8 +57,8 @@
"@opentelemetry/api": "^1.0.2"
},
"dependencies": {
"@opentelemetry/api-metrics": "0.25.0",
"@opentelemetry/api-metrics": "0.26.0",
"@opentelemetry/core": "1.0.0",
"@opentelemetry/sdk-metrics-base": "0.25.0"
"@opentelemetry/sdk-metrics-base": "0.26.0"
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@opentelemetry/instrumentation-fetch",
"version": "0.25.0",
"version": "0.26.0",
"description": "OpenTelemetry fetch automatic instrumentation package.",
"main": "build/src/index.js",
"module": "build/esm/index.js",
Expand Down Expand Up @@ -82,7 +82,7 @@
},
"dependencies": {
"@opentelemetry/core": "1.0.0",
"@opentelemetry/instrumentation": "0.25.0",
"@opentelemetry/instrumentation": "0.26.0",
"@opentelemetry/sdk-trace-web": "1.0.0",
"@opentelemetry/semantic-conventions": "1.0.0"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@opentelemetry/instrumentation-grpc",
"version": "0.25.0",
"version": "0.26.0",
"description": "OpenTelemetry grpc automatic instrumentation package.",
"main": "build/src/index.js",
"types": "build/src/index.d.ts",
Expand Down Expand Up @@ -69,8 +69,8 @@
"@opentelemetry/api": "^1.0.2"
},
"dependencies": {
"@opentelemetry/api-metrics": "0.25.0",
"@opentelemetry/instrumentation": "0.25.0",
"@opentelemetry/api-metrics": "0.26.0",
"@opentelemetry/instrumentation": "0.26.0",
"@opentelemetry/semantic-conventions": "1.0.0"
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@opentelemetry/instrumentation-http",
"version": "0.25.0",
"version": "0.26.0",
"description": "OpenTelemetry http/https automatic instrumentation package.",
"main": "build/src/index.js",
"types": "build/src/index.d.ts",
Expand Down Expand Up @@ -73,7 +73,7 @@
},
"dependencies": {
"@opentelemetry/core": "1.0.0",
"@opentelemetry/instrumentation": "0.25.0",
"@opentelemetry/instrumentation": "0.26.0",
"@opentelemetry/semantic-conventions": "1.0.0",
"semver": "^7.3.5"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@opentelemetry/instrumentation-xml-http-request",
"version": "0.25.0",
"version": "0.26.0",
"description": "OpenTelemetry XMLHttpRequest automatic instrumentation package.",
"main": "build/src/index.js",
"module": "build/esm/index.js",
Expand Down Expand Up @@ -82,7 +82,7 @@
},
"dependencies": {
"@opentelemetry/core": "1.0.0",
"@opentelemetry/instrumentation": "0.25.0",
"@opentelemetry/instrumentation": "0.26.0",
"@opentelemetry/sdk-trace-web": "1.0.0",
"@opentelemetry/semantic-conventions": "1.0.0"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@opentelemetry/instrumentation",
"version": "0.25.0",
"version": "0.26.0",
"description": "Base class for node which OpenTelemetry instrumentation modules extend",
"author": "OpenTelemetry Authors",
"homepage": "https://github.com/open-telemetry/opentelemetry-js#readme",
Expand Down Expand Up @@ -61,7 +61,7 @@
"url": "https://github.com/open-telemetry/opentelemetry-js/issues"
},
"dependencies": {
"@opentelemetry/api-metrics": "0.25.0",
"@opentelemetry/api-metrics": "0.26.0",
"require-in-the-middle": "^5.0.3",
"semver": "^7.3.2",
"shimmer": "^1.2.1"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@opentelemetry/sdk-metrics-base",
"version": "0.25.0",
"version": "0.26.0",
"description": "OpenTelemetry metrics SDK",
"main": "build/src/index.js",
"module": "build/esm/index.js",
Expand Down Expand Up @@ -63,7 +63,7 @@
"@opentelemetry/api": "^1.0.2"
},
"dependencies": {
"@opentelemetry/api-metrics": "0.25.0",
"@opentelemetry/api-metrics": "0.26.0",
"@opentelemetry/core": "1.0.0",
"@opentelemetry/resources": "1.0.0",
"lodash.merge": "^4.6.2"
Expand Down
8 changes: 4 additions & 4 deletions experimental/packages/opentelemetry-sdk-node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@opentelemetry/sdk-node",
"version": "0.25.0",
"version": "0.26.0",
"description": "OpenTelemetry SDK for Node.js",
"main": "build/src/index.js",
"types": "build/src/index.d.ts",
Expand Down Expand Up @@ -42,13 +42,13 @@
"access": "public"
},
"dependencies": {
"@opentelemetry/api-metrics": "0.25.0",
"@opentelemetry/api-metrics": "0.26.0",
"@opentelemetry/core": "1.0.0",
"@opentelemetry/instrumentation": "0.25.0",
"@opentelemetry/instrumentation": "0.26.0",
"@opentelemetry/resource-detector-aws": "0.24.0",
"@opentelemetry/resource-detector-gcp": "0.24.0",
"@opentelemetry/resources": "1.0.0",
"@opentelemetry/sdk-metrics-base": "0.25.0",
"@opentelemetry/sdk-metrics-base": "0.26.0",
"@opentelemetry/sdk-trace-base": "1.0.0",
"@opentelemetry/sdk-trace-node": "1.0.0"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,9 @@ clear whether the exception will escape.
HTTP_TARGET: 'http.target',

/**
* The value of the [HTTP host header](https://tools.ietf.org/html/rfc7230#section-5.4). When the header is empty or not present, this attribute should be the same.
* The value of the [HTTP host header](https://tools.ietf.org/html/rfc7230#section-5.4). An empty Host header should also be reported, see note.
*
* Note: When the header is present but empty the attribute SHOULD be set to the empty string. Note that this is a valid situation that is expected in certain cases, according the aforementioned [section of RFC 7230](https://tools.ietf.org/html/rfc7230#section-5.4). When the header is not set the attribute MUST NOT be set.
*/
HTTP_HOST: 'http.host',

Expand Down Expand Up @@ -433,7 +435,17 @@ clear whether the exception will escape.
/**
* The IP address of the original client behind all proxies, if known (e.g. from [X-Forwarded-For](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For)).
*
* Note: This is not necessarily the same as `net.peer.ip`, which would identify the network-level peer, which may be a proxy.
* Note: This is not necessarily the same as `net.peer.ip`, which would
identify the network-level peer, which may be a proxy.
This attribute should be set when a source of information different
from the one used for `net.peer.ip`, is available even if that other
source just confirms the same value as `net.peer.ip`.
Rationale: For `net.peer.ip`, one typically does not know if it
comes from a proxy, reverse proxy, or the actual client. Setting
`http.client_ip` when it's the same as `net.peer.ip` means that
one is at least somewhat confident that the address is not that of
the closest proxy.
*/
HTTP_CLIENT_IP: 'http.client_ip',

Expand Down Expand Up @@ -607,6 +619,11 @@ clear whether the exception will escape.
*/
MESSAGING_OPERATION: 'messaging.operation',

/**
* The identifier for the consumer receiving a message. For Kafka, set it to `{messaging.kafka.consumer_group} - {messaging.kafka.client_id}`, if both are present, or only `messaging.kafka.consumer_group`. For brokers, such as RabbitMQ and Artemis, set it to the `client_id` of the client consuming the message.
*/
MESSAGING_CONSUMER_ID: 'messaging.consumer_id',

/**
* RabbitMQ message routing key.
*/
Expand Down Expand Up @@ -682,6 +699,28 @@ clear whether the exception will escape.
* `error.message` property of response if it is an error response.
*/
RPC_JSONRPC_ERROR_MESSAGE: 'rpc.jsonrpc.error_message',

/**
* Whether this is a received or sent message.
*/
MESSAGE_TYPE: 'message.type',

/**
* MUST be calculated as two different counters starting from `1` one for sent messages and one for received message.
*
* Note: This way we guarantee that the values will be consistent between different implementations.
*/
MESSAGE_ID: 'message.id',

/**
* Compressed size of the message in bytes.
*/
MESSAGE_COMPRESSED_SIZE: 'message.compressed_size',

/**
* Uncompressed size of the message in bytes.
*/
MESSAGE_UNCOMPRESSED_SIZE: 'message.uncompressed_size',
}

// Enum definitions
Expand Down Expand Up @@ -1014,3 +1053,13 @@ export enum RpcGrpcStatusCodeValues {
UNAUTHENTICATED = 16,
}




export enum MessageTypeValues {
/** sent. */
SENT = 'SENT',
/** received. */
RECEIVED = 'RECEIVED',
}

Loading

0 comments on commit 06d880b

Please sign in to comment.