Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: release v1.0.0 #476

Merged
merged 8 commits into from
Jun 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
97 changes: 97 additions & 0 deletions CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,103 @@
{
"name": "@splunk/otel",
"entries": [
{
"date": "Fri, 03 Jun 2022 13:48:20 GMT",
"tag": "@splunk/otel_v1.0.0",
"version": "1.0.0",
"comments": {
"major": [
{
"author": "[email protected]",
"package": "@splunk/otel",
"commit": "f2ed1b9497e8eb30a4192e1c6d1b631f4564b5b6",
"comment": "chore: remove support for deprecated `opentelemetry-instrumentation-amqplib`"
},
{
"author": "[email protected]",
"package": "@splunk/otel",
"commit": "fc7b002cdb61cf4ace5b73449c1ef69124ec0b44",
"comment": "chore: remove support for deprecated `opentelemetry-instrumentation-aws-sdk`"
},
{
"author": "[email protected]",
"package": "@splunk/otel",
"commit": "2df2a1e4ae1d36c7f02a2d79f3210fd70e6db52b",
"comment": "feat: throw when `startTracing` is called twice"
},
{
"author": "[email protected]",
"package": "@splunk/otel",
"commit": "070c6d658321e064e0bddcdc9611002537af1f35",
"comment": "feat: throw when extraneous properties are provided"
},
{
"author": "[email protected]",
"package": "@splunk/otel",
"commit": "5b4322d1e5c63c98be116a9ddc2d9f1b741fab24",
"comment": "chore: remove support for Node versions before LTS 12"
},
{
"author": "[email protected]",
"package": "@splunk/otel",
"commit": "c01f78af6dfa2fced801c128bad7dbf58ed58b1a",
"comment": "feat: upgrade OTel deps and bump min instrumentation versions"
}
],
"minor": [
{
"author": "[email protected]",
"package": "@splunk/otel",
"commit": "25a24ac055e479ddd330d15820ab800293df94e9",
"comment": "feat: prebuild for node@18"
},
{
"author": "[email protected]",
"package": "@splunk/otel",
"commit": "d5ae0644a042424324c30188986324306af0cd0f",
"comment": "feat: add splunk.distro.version resource attribute"
},
{
"author": "[email protected]",
"package": "@splunk/otel",
"commit": "57b3dd05bc93b054f023bf828786d5319da91961",
"comment": "feat: bring in detectors for os.* and host.* attributes"
},
{
"author": "[email protected]",
"package": "@splunk/otel",
"commit": "499f54f65ffa601bbcd955f3d212c9e4763cda57",
"comment": "feat: add a generic start API"
},
{
"author": "[email protected]",
"package": "@splunk/otel",
"commit": "638b774ac52d8d5475359d1d036b24fa38726749",
"comment": "feat: detect resource from process"
},
{
"author": "[email protected]",
"package": "@splunk/otel",
"commit": "7a7ef91e2ff7a1aaa8184608b900cb9e16f63598",
"comment": "feat: throw when unexpected configuration provided"
},
{
"author": "[email protected]",
"package": "@splunk/otel",
"commit": "4fd1655b8373fe052116a72ab15b96b8852ba8bd",
"comment": "feat: implement setting up ConsoleSpanExporter via env var"
}
],
"none": [
{
"author": "[email protected]",
"package": "@splunk/otel",
"commit": "11df6ddb01885b0c60d9eab8ed5671a8d29a3ab6",
"comment": "feat: change the `readme.md` badge to stable"
}
]
}
},
{
"date": "Thu, 21 Apr 2022 17:01:07 GMT",
"tag": "@splunk/otel_v0.18.0",
Expand Down
25 changes: 24 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,32 @@
# Change Log - @splunk/otel

This log was last generated on Thu, 21 Apr 2022 17:01:07 GMT and should not be manually modified.
This log was last generated on Fri, 03 Jun 2022 13:48:20 GMT and should not be manually modified.

<!-- Start content -->

## 1.0.0

Fri, 03 Jun 2022 13:48:20 GMT

### Major changes

- chore: remove support for deprecated `opentelemetry-instrumentation-amqplib` ([email protected])
- chore: remove support for deprecated `opentelemetry-instrumentation-aws-sdk` ([email protected])
- feat: throw when `startTracing` is called twice ([email protected])
- feat: throw when extraneous properties are provided ([email protected])
- chore: remove support for Node versions before LTS 12 ([email protected])
- feat: upgrade OTel deps and bump min instrumentation versions ([email protected])

### Minor changes

- feat: prebuild for node@18 ([email protected])
- feat: add splunk.distro.version resource attribute ([email protected])
- feat: bring in detectors for os.* and host.* attributes ([email protected])
- feat: add a generic start API ([email protected])
- feat: detect resource from process ([email protected])
- feat: throw when unexpected configuration provided ([email protected])
- feat: implement setting up ConsoleSpanExporter via env var ([email protected])

## 0.18.0

Thu, 21 Apr 2022 17:01:07 GMT
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<p align="center">
<img alt="Beta" src="https://img.shields.io/badge/status-beta-informational?style=for-the-badge">
<img alt="Stable" src="https://img.shields.io/badge/status-stable-informational?style=for-the-badge">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not related to this change, but the GitHub branch checks state is always PENDING, should replace it with https://img.shields.io/github/workflow/status/signalfx/splunk-otel-js/Continuous%20Integration/main

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Goodones! Fixed them.

<a href="https://github.com/signalfx/splunk-otel-js/releases">
<img alt="GitHub release (latest by date)" src="https://img.shields.io/github/v/release/signalfx/splunk-otel-js?include_prereleases&style=for-the-badge">
</a>
Expand All @@ -9,7 +9,7 @@
<img alt="npm" src="https://img.shields.io/npm/v/@splunk/otel?style=for-the-badge">
<img alt="node-current" src="https://img.shields.io/node/v/@splunk/otel?style=for-the-badge">
<img alt="Codecov" src="https://img.shields.io/codecov/c/github/signalfx/splunk-otel-js?style=for-the-badge&token=XKXjEQKGaK">
<img alt="GitHub branch checks state" src="https://img.shields.io/github/checks-status/signalfx/splunk-otel-js/main?style=for-the-badge">
<img alt="GitHub branch checks state" src="https://img.shields.io/github/workflow/status/signalfx/splunk-otel-js/Continuous%20Integration/main?style=for-the-badge">
</p>

# Splunk Distribution of OpenTelemetry for Node.js
Expand Down Expand Up @@ -111,7 +111,7 @@ startTracing({
});
```

> `startTracing` is destructive to Open Telemetry API globals. We provide the `stopTracing` method, but it won't revert to OTel API globals set before `startTracing` was run, it will only disable globals, which `startTracing` set.
> `startTracing` is destructive to Open Telemetry API globals. Any globals set before running `startTracing` are overwritten.

## Default Instrumentation Packages<a name="default-instrumentation-packages"></a>

Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion examples/basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"dependencies": {
"@opentelemetry/api": "^1.0.3",
"@opentelemetry/instrumentation-http": "^0.28.0",
"@splunk/otel": "^0.17.0",
"@splunk/otel": "^0.18.0",
"axios": "^0.21.1",
"express": "^4.17.1"
}
Expand Down
2 changes: 1 addition & 1 deletion examples/express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"dependencies": {
"@opentelemetry/instrumentation-express": "^0.29.0",
"@opentelemetry/instrumentation-http": "^0.28.0",
"@splunk/otel": "^0.17.0",
"@splunk/otel": "^0.18.0",
"axios": "^0.21.1",
"env-cmd": "^10.1.0",
"express": "^4.17.1",
Expand Down
2 changes: 1 addition & 1 deletion examples/log-injection/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"dependencies": {
"@opentelemetry/api": "^1.0.3",
"@opentelemetry/instrumentation-pino": "^0.29.0",
"@splunk/otel": "^0.17.0",
"@splunk/otel": "^0.18.0",
"pino": "^6.13.3"
}
}
2 changes: 1 addition & 1 deletion examples/logs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"dependencies": {
"@opentelemetry/api": "^1.0.3",
"@splunk/otel": "^0.17.0"
"@splunk/otel": "^0.18.0"
}
}
2 changes: 1 addition & 1 deletion examples/mixed/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"@opentelemetry/api": "^1.0.3",
"@opentelemetry/instrumentation-http": "^0.28.0",
"@opentelemetry/instrumentation-pino": "^0.29.0",
"@splunk/otel": "^0.17.0",
"@splunk/otel": "^0.18.0",
"pino": "^6.13.2"
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@splunk/otel",
"version": "0.18.0",
"version": "1.0.0",
"description": "The Splunk distribution of OpenTelemetry Node Instrumentation provides a Node agent that automatically instruments your Node application to capture and report distributed traces to Splunk APM.",
"repository": "[email protected]:signalfx/splunk-otel-js.git",
"author": "Splunk <[email protected]>",
Expand Down
9 changes: 1 addition & 8 deletions src/metrics/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
* limitations under the License.
*/

import { inspect } from 'util';

import { context, diag } from '@opentelemetry/api';
import { suppressTracing } from '@opentelemetry/core';
import { collectMemoryInfo, MemoryInfo } from './memory';
Expand Down Expand Up @@ -92,12 +90,7 @@ export const allowedMetricsOptions = [
];

export function startMetrics(opts: StartMetricsOptions = {}) {
try {
assertNoExtraneousProperties(opts, allowedMetricsOptions);
} catch (e) {
diag.error(inspect(e));
diag.warn('This will turn into a thrown exception in @splunk/[email protected]');
}
assertNoExtraneousProperties(opts, allowedMetricsOptions);

const options = _setDefaultOptions(opts);

Expand Down
9 changes: 1 addition & 8 deletions src/profiling/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
* limitations under the License.
*/

import { inspect } from 'util';

import { context, diag } from '@opentelemetry/api';
import { Resource } from '@opentelemetry/resources';
import {
Expand Down Expand Up @@ -55,12 +53,7 @@ function extCollectSamples(extension: ProfilingExtension) {
}

export function startProfiling(opts: Partial<ProfilingOptions> = {}) {
try {
assertNoExtraneousProperties(opts, allowedProfilingOptions);
} catch (e) {
diag.error(inspect(e));
diag.warn('This will turn into a thrown exception in @splunk/[email protected]');
}
assertNoExtraneousProperties(opts, allowedProfilingOptions);

const options = _setDefaultOptions(opts);

Expand Down
12 changes: 4 additions & 8 deletions src/tracing/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@
* limitations under the License.
*/

import { inspect } from 'util';
import { strict as assert } from 'assert';
import { gte } from 'semver';

import { context, propagation, trace, diag } from '@opentelemetry/api';
import { context, propagation, trace } from '@opentelemetry/api';
import { NodeTracerProvider } from '@opentelemetry/sdk-trace-node';
import { registerInstrumentations } from '@opentelemetry/instrumentation';
import {
Expand Down Expand Up @@ -51,12 +50,9 @@ export { Options as TracingOptions };
export function startTracing(opts: Partial<Options> = {}): boolean {
assert(!isStarted || allowDoubleStart, 'Splunk APM already started');
isStarted = true;
try {
assertNoExtraneousProperties(opts, allowedTracingOptions);
} catch (e) {
diag.error(inspect(e));
diag.warn('This will turn into a thrown exception in @splunk/[email protected]');
}

assertNoExtraneousProperties(opts, allowedTracingOptions);

const options = _setDefaultOptions(opts);

// propagator
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
* limitations under the License.
*/

export const VERSION = '0.18.0';
export const VERSION = '1.0.0';