Skip to content

pino logs are not recieved by baselime #65

@Mdev303

Description

@Mdev303

I am trying to setup logging to baselime using pino , I can see my traces but logs don't seem to work.
In the log pannel of the trace I get the message:
"There are no events matching the criteria in the selected timeframe
The query didn't return any event."

this is the otel config I am using

/* eslint-disable @typescript-eslint/no-var-requires */
const { PinoInstrumentation } = require('@opentelemetry/instrumentation-pino')

const { BaselimeSDK } = require('@baselime/node-opentelemetry')
const {
	getNodeAutoInstrumentations
} = require('@opentelemetry/auto-instrumentations-node')

const sdk = new BaselimeSDK({
	instrumentations: [getNodeAutoInstrumentations(), new PinoInstrumentation()],
	service: 'server',
	baselimeKey: 'MY_KEY'
})

sdk.start()

and this is how I log

import pino from 'pino'
const logger = pino()

logger.info("posts")

In the console I can see the log being printed

 {"level":30,"time":1712507245438,"pid":16972,"hostname":"DESKTOP-IE8MVRK","trace_id":"cca13668880673edd47b43217a6c984c","span_id":"2117231e1a362282","trace_flags":"01","msg":"posts"

but no logs in baselime
baselime_2
baselime_1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions