
Security News
PyPI Expands Trusted Publishing to GitLab Self-Managed as Adoption Passes 25 Percent
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads
@bonniernews/gcp-trace-logging-correlator
Advanced tools
Helps you correlate both request and application logs in an app running on GCP
Helps you correlate both request and application logs in an app running on GCP. You can read more about log correlation in GCP here https://cloud.google.com/run/docs/logging#correlate-logs
npm install @bonniernews/gcp-trace-logging-correlator
This package comes with an express middleware and a function that extracts the trace as an object that should be injected into your logs.
Install the middleware somewhere globally in your app. You have to provide the GCP project ID meaning you probably want to set this up with an environment variable.
import { middleware } from "@bonniernews/gcp-trace-logging-correlator";
// ...
app.use(middleware(config.get("gcp_project_id")));
You should then provide the object returned by the function getTraceObject to your logging library.
If you're using pino, you should pass it to a mixin like this
import { getTraceObject } from "@bonniernews/gcp-trace-logging-correlator";
const logger = pino({
// ...
mixin = () => ({
somethingElse: "foo",
...getTraceObject(),
});
});
FAQs
Helps you correlate both request and application logs in an app running on GCP
The npm package @bonniernews/gcp-trace-logging-correlator receives a total of 149 weekly downloads. As such, @bonniernews/gcp-trace-logging-correlator popularity was classified as not popular.
We found that @bonniernews/gcp-trace-logging-correlator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 33 open source maintainers 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.

Security News
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.

Security News
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.