Skip to content

Commit

Permalink
docs: fix wrong path in all examples (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vunovati authored Mar 8, 2024
1 parent f2b7f20 commit fc3f5a0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/trace-context/http-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const http = require('http')
const pino = require('pino')
const path = require('path')
const transport = pino.transport({
target: path.join(__dirname, '..', '..', 'pino-opentelemetry-transport')
target: path.join(__dirname, '..', '..', 'lib', 'pino-opentelemetry-transport')
})

const logger = pino(transport)
Expand Down
2 changes: 1 addition & 1 deletion examples/typescript/example.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { Options } from '../../'

const transport = pino.transport<Options>({
// target: 'pino-opentelemetry-transport',
target: join(__dirname, '..', '..', 'pino-opentelemetry-transport'),
target: join(__dirname, '..', '..', 'lib', 'pino-opentelemetry-transport'),
options: {
logRecordProcessorOptions: [
{ recordProcessorType: 'batch', exporterOptions: { protocol: 'http' } },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const pino = require('pino')
const path = require('path')

const transport = pino.transport({
target: path.join(__dirname, '..', '..', 'pino-opentelemetry-transport'),
target: path.join(__dirname, '..', '..', 'lib', 'pino-opentelemetry-transport'),
options: {
logRecordProcessorOptions: [
{ recordProcessorType: 'batch', exporterOptions: { protocol: 'http' } },
Expand Down

0 comments on commit fc3f5a0

Please sign in to comment.