Skip to main content

Sentry

Manage Sentry projects, teams, and client keys for error tracking and monitoring.

Resources

Project

Create and manage Sentry projects.
import { Project } from "alchemy/sentry";

const project = await Project("my-project", {
  name: "My Project",
  team: "my-team",
  organization: "my-org"
});

Props

team
string
required
The team slug that owns the project
organization
string
required
The organization ID or slug that owns the project
name
string
default:"${app}-${stage}-${id}"
The name for the project
slug
string
Uniquely identifies a project and is used for the interface
platform
string
The platform for the project (e.g., “javascript”, “python”, “node”, “react-native”)
defaultRules
boolean
Whether to alert on every new issue
authToken
Secret
Auth token to use (overrides environment variable)
adopt
boolean
default:"false"
Whether to adopt an existing project with the same slug if it exists. If true and a project with the same slug exists, it will be adopted rather than creating a new one.

Returns

id
string
The ID of the project
name
string
The name for the project
team
object
The team that owns the project
teams
array
All teams that have access to the project
isBookmarked
boolean
Whether the project is bookmarked
isMember
boolean
Whether the current user is a member of the project
access
string[]
Access permissions for the project
hasAccess
boolean
Whether the current user has access to the project
dateCreated
string
Time at which the project was created
environments
string[]
List of environments in the project
features
string[]
List of features enabled for the project
firstEvent
string | null
Whether the project has received its first event
platforms
string[]
List of platforms in the project

Build docs developers (and LLMs) love