Skip to content

Commit

Permalink
chore(deps): bump @opentelemetry/exporter-prometheus from 0.53.0 to 0…
Browse files Browse the repository at this point in the history
….54.0 (DIYgod#17286)

* chore(deps): bump @opentelemetry/exporter-prometheus

Bumps [@opentelemetry/exporter-prometheus](https://github.com/open-telemetry/opentelemetry-js) from 0.53.0 to 0.54.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.53.0...experimental/v0.54.0)

---
updated-dependencies:
- dependency-name: "@opentelemetry/exporter-prometheus"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore: fix pnpm install

* fix: use ATTR_SERVICE_NAME

SEMRESATTRS_SERVICE_NAME is deprecated

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
dependabot[bot] authored Oct 24, 2024
1 parent b2a35b6 commit edce496
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions lib/utils/otel/metric.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Resource } from '@opentelemetry/resources';
import { PrometheusExporter, PrometheusSerializer } from '@opentelemetry/exporter-prometheus';
import { SEMRESATTRS_SERVICE_NAME } from '@opentelemetry/semantic-conventions';
import { ATTR_SERVICE_NAME } from '@opentelemetry/semantic-conventions';
import { MeterProvider } from '@opentelemetry/sdk-metrics';
import { Attributes } from '@opentelemetry/api';
import { config } from '@/config';
Expand All @@ -21,7 +21,7 @@ const exporter = new PrometheusExporter({});

const provider = new MeterProvider({
resource: new Resource({
[SEMRESATTRS_SERVICE_NAME]: 'rsshub',
[ATTR_SERVICE_NAME]: 'rsshub',
}),
readers: [exporter],
});
Expand Down
4 changes: 2 additions & 2 deletions lib/utils/otel/trace.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { Resource } from '@opentelemetry/resources';
import { BasicTracerProvider, BatchSpanProcessor } from '@opentelemetry/sdk-trace-base';
import { SEMRESATTRS_SERVICE_NAME } from '@opentelemetry/semantic-conventions';
import { ATTR_SERVICE_NAME } from '@opentelemetry/semantic-conventions';
import { OTLPTraceExporter } from '@opentelemetry/exporter-trace-otlp-http';

const provider = new BasicTracerProvider({
resource: new Resource({
[SEMRESATTRS_SERVICE_NAME]: 'rsshub',
[ATTR_SERVICE_NAME]: 'rsshub',
}),
});

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"@hono/zod-openapi": "0.16.4",
"@notionhq/client": "2.2.15",
"@opentelemetry/api": "1.9.0",
"@opentelemetry/exporter-prometheus": "0.53.0",
"@opentelemetry/exporter-prometheus": "0.54.0",
"@opentelemetry/exporter-trace-otlp-http": "0.53.0",
"@opentelemetry/resources": "1.27.0",
"@opentelemetry/sdk-metrics": "1.27.0",
Expand Down
16 changes: 8 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit edce496

Please sign in to comment.