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

Updated readMe #455

Merged
merged 1 commit into from
Nov 23, 2023
Merged
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
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Please read this [comprehensive whitepaper](https://github.com/cncf/tag-observab
## Installation

```bash
$ npm i nestjs-otel @opentelemetry/sdk-node --save
npm i nestjs-otel @opentelemetry/sdk-node --save
```

## Setup
Expand Down Expand Up @@ -58,10 +58,9 @@ import { AsyncLocalStorageContextManager } from '@opentelemetry/context-async-ho
import * as process from 'process';

const otelSDK = new NodeSDK({
metricExporter: new PrometheusExporter({
metricReader: new PrometheusExporter({
port: 8081,
}),
metricInterval: 1000,
spanProcessor: new BatchSpanProcessor(new JaegerExporter()),
contextManager: new AsyncLocalStorageContextManager(),
textMapPropagator: new CompositePropagator({
Expand Down Expand Up @@ -319,7 +318,8 @@ export const logger: Logger = Pino(loggerOptions);

A full working examples are available. This includes a nestjs application fully integrated with prometheus, grafana, loki and tempo:

* [nestjs-otel-prom-grafana-tempo](https://github.com/pragmaticivan/nestjs-otel-prom-grafana-tempo )
- [nestjs-otel-prom-grafana-tempo](https://github.com/pragmaticivan/nestjs-otel-prom-grafana-tempo )

## Stargazers over time

[![Stargazers over time](https://starchart.cc/pragmaticivan/nestjs-otel.svg)](https://starchart.cc/pragmaticivan/nestjs-otel)