Skip to content

Commit

Permalink
build(deps): bump the opentelemetry group across 1 directory with 5 u…
Browse files Browse the repository at this point in the history
…pdates (#2593)

* build(deps): bump the opentelemetry group across 1 directory with 5 updates

Bumps the opentelemetry group with 5 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [@opentelemetry/auto-instrumentations-node](https://github.com/open-telemetry/opentelemetry-js-contrib) | `0.53.0` | `0.55.0` |
| [@opentelemetry/exporter-trace-otlp-grpc](https://github.com/open-telemetry/opentelemetry-js) | `0.55.0` | `0.57.0` |
| [@opentelemetry/instrumentation](https://github.com/open-telemetry/opentelemetry-js) | `0.55.0` | `0.57.0` |
| [@opentelemetry/resources](https://github.com/open-telemetry/opentelemetry-js) | `1.28.0` | `1.30.0` |
| [@opentelemetry/sdk-node](https://github.com/open-telemetry/opentelemetry-js) | `0.55.0` | `0.57.0` |



Updates `@opentelemetry/auto-instrumentations-node` from 0.53.0 to 0.55.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-js-contrib/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-js-contrib/blob/main/CHANGELOG.md)
- [Commits](open-telemetry/opentelemetry-js-contrib@auto-instrumentations-node-v0.53.0...auto-instrumentations-node-v0.55.0)

Updates `@opentelemetry/exporter-trace-otlp-grpc` from 0.55.0 to 0.57.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-js/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-js/blob/main/CHANGELOG.md)
- [Commits](open-telemetry/opentelemetry-js@experimental/v0.55.0...experimental/v0.57.0)

Updates `@opentelemetry/instrumentation` from 0.55.0 to 0.57.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-js/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-js/blob/main/CHANGELOG.md)
- [Commits](open-telemetry/opentelemetry-js@experimental/v0.55.0...experimental/v0.57.0)

Updates `@opentelemetry/resources` from 1.28.0 to 1.30.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-js/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-js/blob/main/CHANGELOG.md)
- [Commits](open-telemetry/opentelemetry-js@v1.28.0...v1.30.0)

Updates `@opentelemetry/sdk-node` from 0.55.0 to 0.57.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-js/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-js/blob/main/CHANGELOG.md)
- [Commits](open-telemetry/opentelemetry-js@experimental/v0.55.0...experimental/v0.57.0)

---
updated-dependencies:
- dependency-name: "@opentelemetry/auto-instrumentations-node"
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: opentelemetry
- dependency-name: "@opentelemetry/exporter-trace-otlp-grpc"
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: opentelemetry
- dependency-name: "@opentelemetry/instrumentation"
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: opentelemetry
- dependency-name: "@opentelemetry/resources"
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: opentelemetry
- dependency-name: "@opentelemetry/sdk-node"
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: opentelemetry
...

Signed-off-by: dependabot[bot] <[email protected]>

* switch to proto over http

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Liz Fong-Jones <[email protected]>
  • Loading branch information
dependabot[bot] and lizthegrey authored Dec 29, 2024
1 parent 338acc4 commit 47871e1
Show file tree
Hide file tree
Showing 3 changed files with 541 additions and 479 deletions.
11 changes: 5 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,12 @@
},
"type": "module",
"dependencies": {
"@grpc/grpc-js": "^1.12.5",
"@opentelemetry/api": "1.9.0",
"@opentelemetry/auto-instrumentations-node": "^0.53.0",
"@opentelemetry/exporter-trace-otlp-grpc": "^0.55.0",
"@opentelemetry/instrumentation": "^0.55.0",
"@opentelemetry/resources": "^1.28.0",
"@opentelemetry/sdk-node": "^0.55.0",
"@opentelemetry/auto-instrumentations-node": "^0.55.0",
"@opentelemetry/exporter-trace-otlp-proto": "^0.57.0",
"@opentelemetry/instrumentation": "^0.57.0",
"@opentelemetry/resources": "^1.30.0",
"@opentelemetry/sdk-node": "^0.57.0",
"@opentelemetry/semantic-conventions": "^1.28.0",
"@sentry/node": "^7.120.2",
"axios": "^1.7.9",
Expand Down
14 changes: 6 additions & 8 deletions src/server/infra/init/initMonitoring.ts
Original file line number Diff line number Diff line change
@@ -1,26 +1,24 @@
import * as Sentry from "@sentry/node";
import Graceful from "node-graceful";
import { ChannelCredentials, Metadata } from "@grpc/grpc-js";
import * as opentelemetry from "@opentelemetry/sdk-node";
import { Resource } from "@opentelemetry/resources";
import { SemanticResourceAttributes } from "@opentelemetry/semantic-conventions";
import { getNodeAutoInstrumentations } from "@opentelemetry/auto-instrumentations-node";
import { OTLPTraceExporter } from "@opentelemetry/exporter-trace-otlp-grpc";
import { OTLPTraceExporter } from "@opentelemetry/exporter-trace-otlp-proto";
import { Env } from "./Env.js";

export function initMonitoring(env: Env) {
// Init Honeycomb
const metadata = new Metadata();
metadata.set("x-honeycomb-team", env.HONEYCOMB_API_KEY);
metadata.set("x-honeycomb-dataset", env.HONEYCOMB_DATASET);
const sdk = new opentelemetry.NodeSDK({
resource: new Resource({
[SemanticResourceAttributes.SERVICE_NAME]: "roster",
}),
traceExporter: new OTLPTraceExporter({
url: "grpcs://api.honeycomb.io:443/",
credentials: ChannelCredentials.createSsl(),
metadata: metadata,
url: "https://api.honeycomb.io:443/",
headers: {
"x-honeycomb-team": env.HONEYCOMB_API_KEY,
"x-honeycomb-dataset": env.HONEYCOMB_DATASET,
},
}),
instrumentations: [
getNodeAutoInstrumentations({
Expand Down
Loading

0 comments on commit 47871e1

Please sign in to comment.