
Security News
CVE Volume Surges Past 48,000 in 2025 as WordPress Plugin Ecosystem Drives Growth
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.
graphql-lightstep-middleware
Advanced tools
GraphQL middleware to instrument resolvers with opentracing traces for lightstep collector
GraphQL middleware to instrument resolvers with opentracing traces for lightstep collector
yarn add graphql-lightstep-middleware
yarn add graphql-middleware
import { initGlobalTracer } from "opentracing";
import { Tracer as LightstepTracer } from "lightstep-tracer";
// Initialise the lightstep tracer
initGlobalTracer(new LightstepTracer({
access_token: "developer",
component_name: "graphql-lightstep-middleware",
collector_host: "localhost",
collector_port: 8360,
plaintext: true,
collector_encryption: "none"
} as any));
import graphqlLightstepMiddleware from "graphql-lightstep-middleware";
// create the lightstep-graphql-middleware
const lightstepMiddleware = graphqlLightstepMiddleware({
tracer: globalTracer()
});
import express from "express";
import graphqlExpressHttp from "express-graphql";
import { applyMiddleware } from "graphql-middleware";
import { makeExecutableSchema } from "graphql-tools";
// Construct a schema, using GraphQL schema language
const typeDefs = `
type Query {
hello(name: String): String
}
`;
const resolvers = {
Query: {
hello: (parent, args, context) => {
const result = `Hello ${args.name ? args.name : "world"}!`;
// The rootSpan is available in the context now
context.tracing.rootSpan.addTags({
helloResolver: result
});
return result;
}
}
};
// apply the middleware to the schema
const schema = applyMiddleware(
makeExecutableSchema({ typeDefs, resolvers }),
lightstepMiddleware
);
// Use the schema in your graphql server
const app = express();
app.use(
"/graphql",
graphqlExpressHttp({
schema: schema,
rootValue: resolvers,
graphiql: true
})
);
options
tracer: An optional lightstep tracer objecthooks: Lost of PreResolve and PostResolve hooksRefer the examples for more usage examples
graphql-lightstep-middleware package intends to support contribution and support and thanks the open source community to making it better. Read below to learn how you can improve this repository and package
Please check the CODE OF CONDUCT which we have in place to ensure safe and supportive environment for contributors
Feel free to create issues and bugs in the issues section using issues and bugs template. Please also ensure that there are not existing issues created on the same topic
Please check issues labeled #good-first-issues under the issues section
graphql-lightstep-middleware uses MIT License
FAQs
GraphQL middleware to instrument resolvers with opentracing traces for lightstep collector
The npm package graphql-lightstep-middleware receives a total of 0 weekly downloads. As such, graphql-lightstep-middleware popularity was classified as not popular.
We found that graphql-lightstep-middleware 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
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.