
Security News
GitHub Actions Checkout Now Blocks Risky pull_request_target Checkouts
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.
@metis-data/base-interceptor
Advanced tools
@metis-data/base-interceptorUtils for building an interceptor.
Merge interceptor configuration from code (e.g. from developer), environment and builtin default.
import {
Configuration,
ConfigurationHandler,
} from '@metis-data/base-interceptor';
const config = { serviceName: 'test' };
const mergedConfig = ConfigurationHandler.getMergedConfig(config);
Mark a span as tracked by Metis. Only Spans with this tag would be exported to Metis' server (assuming MetisRemoteExporter is used).
import { markSpan } from '@metis-data/base-interceptor';
markSpan(span);
Extract a query from a span using the common db related attributes.
import { getQueryFromSpan } from '@metis-data/base-interceptor';
const query = getQueryFromSpan(span);
Adds the trace and span id to SQL query.
Example:
SELECT * FROM table /traceparent=traceId-spanId**/
import { attachTraceIdToQuery } from '@metis-data/base-interceptor';
attachTraceIdToQuery(span);
Add a given plan Object to a given span.
import { addPlanToSpan } from '@metis-data/base-interceptor';
addPlanToSpan(span, plan);
FAQs
Utils for metis packages for query interception
The npm package @metis-data/base-interceptor receives a total of 24 weekly downloads. As such, @metis-data/base-interceptor popularity was classified as not popular.
We found that @metis-data/base-interceptor demonstrated a not healthy version release cadence and project activity because the last version was released 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.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.