A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources with infrastructure-as-code.
—
Quality
Pending
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
AWS X-Ray helps developers analyze and debug production, distributed applications.
import * as aws from "@pulumi/aws";
import * as xray from "@pulumi/aws/xray";Control trace sampling rates.
const samplingRule = new aws.xray.SamplingRule("api-sampling", {
ruleName: "api-traces",
priority: 1000,
version: 1,
reservoirSize: 1,
fixedRate: 0.05,
urlPath: "/api/*",
host: "*",
httpMethod: "*",
serviceName: "*",
serviceType: "*",
resourceArn: "*",
});Organize traces into groups.
const group = new aws.xray.Group("errors", {
groupName: "ErrorTraces",
filterExpression: "error = true",
insightsConfiguration: {
insightsEnabled: true,
notificationsEnabled: true,
},
});Install with Tessl CLI
npx tessl i tessl/npm-pulumi--aws@7.16.0