
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
pino-sentry-transport
Advanced tools
Pino Sentry Transport allows you to send logs from Pino directly to Sentry.
npm i pino-sentry-transport
import pino from "pino";
const logger = pino({
transport: {
target: "pino-sentry-transport",
options: {
sentry: {
dsn: "https://<key>:<secret>@sentry.io/<project>",
// additional options for Sentry
},
// default false - send the entire log record to Sentry as a context.
// FYI: if it's more than 8Kb, Sentry will throw an error
withLogRecord: true,
// sentry tags to add to the event, uses `lodash.get` to get the value from the log record
tags: ['level'],
// sentry context to add to the event, uses `lodash.get` to get the value from the log record
context: ['hostname'],
// which level to send to Sentry
minLevel: 40,
// default false - pass true if pino is configured with custom messageKey or errorKey, see below
expectPinoConfig: true,
}
},
});
withLogRecord
: When set to true
, sends the entire log record as context to Sentry. Be cautious of log records larger than 8KB, as Sentry will throw an error.tags
: An array specifying which fields from the log record should be added as tags in Sentry. Uses lodash.get
to extract values.context
: An array specifying which fields from the log record should be added as context in Sentry. Also uses lodash.get
for value extraction.minLevel
: The minimum log level required for a message to be sent to Sentry. Log levels follow Pino's conventions (e.g., 50 for 'error').expectPinoConfig
: If set to true
, allows the transport to work with custom messageKey
or errorKey
settings in Pino.Because Pino transport runs in a separate worker thread, Sentry needs to be initialized in the transport.
This project is licensed under the MIT License - see the LICENSE file for details.
1.5.1
FAQs
Integrates Pino and Sentry.
The npm package pino-sentry-transport receives a total of 13,646 weekly downloads. As such, pino-sentry-transport popularity was classified as popular.
We found that pino-sentry-transport demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.