The only tool you need to know what is happening and how to fix it.
Go alertingexception-trackerissue-trackinglogsmetricsmonitoringobservability-platformopen-telemetryotelsession-replaytelemetrytraces
feat: updated cloud pricing (#250)
narrow-adventure7a208c46d31a
diff --git a/CLAUDE.md b/CLAUDE.mdindex be90865e..53e1ea0e 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -755,7 +755,7 @@ Retention is handled in three different ways depending on the deployment.| `metric_points` (raw) | **7 days** | `0034_add_ttl_metric_points.up.sql` || `metric_points_1m` (1-min rollup) | **30 days** | `0035_add_ttl_metric_points_1m.up.sql` || `metric_points_1h` (1-hour rollup) | **1 year** | `0036_add_ttl_metric_points_1h.up.sql` |-| `log_records` | **30 days** | `0045_create_log_records.up.sql` |+| `log_records` | **90 days** | `0075_increase_ttl_log_records.up.sql` (raised from 30d set in `0045_create_log_records.up.sql`) || `profiling_samples` (the bulk) | **30 days** | `0068_add_ttl_profiling_samples.up.sql` || `profiles` (slim metadata) | **30 days** | `0069_add_ttl_profiles.up.sql` || `profiling_stacks` (dedup table) | **30 days** | `0070_add_ttl_profiling_stacks.up.sql` |diff --git a/backend/app/controllers/clientcontrollers/client.controller.go b/backend/app/controllers/clientcontrollers/client.controller.goindex 3746b8b4..5bf25c90 100644--- a/backend/app/controllers/clientcontrollers/client.controller.go+++ b/backend/app/controllers/clientcontrollers/client.controller.go@@ -102,12 +102,10 @@ func (e clientController) Report(c *gin.Context) {}}- if project != nil && project.OrganizationId != nil {- if !hooks.CanReport(*project.OrganizationId) {- monitoring.RecordRateLimited(*project.OrganizationId)- c.AbortWithStatus(http.StatusTooManyRequests)- return- }+ orgId := 0+ hasOrg := project != nil && project.OrganizationId != nil+ if hasOrg {+ orgId = *project.OrganizationId}parseSpan := traceway.StartSpan(c, "report.parse_body")@@ -269,6 +267,36 @@ func (e clientController) Report(c *gin.Context) {monitoring.RecordHealthchecksDropped(monitoring.SignalNative, droppedHealthchecks)}+ perm := hooks.IngestPermission{Exceptions: true, Data: true, Replay: true}+ if hasOrg {+ perm = hooks.IngestPermissionFor(orgId)+ }++ recordingBytes := 0+ for _, rw := range recordingsWork {+ recordingBytes += len(rw.Body)+ }+ telemetryBytes := bodyBytes - recordingBytes+ if telemetryBytes < 0 {+ telemetryBytes = 0+ }++ if !perm.Exceptions {+ exceptionStackTraceToInsert = nil+ }+ if !perm.Data {+ endpointsToInsert = nil+ tasksToInsert = nil+ spansToInsert = nil+ metricPointsToInsert = nil+ }+ if !perm.Replay {+ recordingsWork = nil+ }+ if hasOrg && (!perm.Exceptions || !perm.Data) {+ monitoring.RecordRateLimited(orgId)+ }+convertMs := float64(time.Since(convertStart).Microseconds()) / 1000.0insertStart := time.Now()@@ -342,16 +370,25 @@ func (e clientController) Report(c *gin.Context) {exceptionHashes = append(exceptionHashes, est.ExceptionHash)}- if project != nil && project.OrganizationId != nil {- hooks.BroadcastReport(hooks.ReportEvent{- OrganizationId: *project.OrganizationId,- ProjectId: projectId,- EndpointCount: len(endpointsToInsert),- ErrorCount: len(exceptionStackTraceToInsert),- TaskCount: len(tasksToInsert),- RecordingCount: len(recordingsWork),- ExceptionHashes: exceptionHashes,- })+ if hasOrg {+ ev := hooks.ReportEvent{+ OrganizationId: orgId,+ ProjectId: projectId,+ }+ if perm.Data {+ ev.EndpointCount = len(endpointsToInsert)+ ev.TaskCount = len(tasksToInsert)+ ev.TelemetryBytes = telemetryBytes+ }+ if perm.Exceptions {+ ev.ErrorCount = len(exceptionStackTraceToInsert)+ ev.ExceptionHashes = exceptionHashes+ }+ if perm.Replay {+ ev.RecordingCount = len(recordingsWork)+ ev.RecordingBytes = recordingBytes+ }+ hooks.BroadcastReport(ev)}for _, rw := range recordingsWork {diff --git a/backend/app/controllers/clientcontrollers/profile_ingest.controller.go b/backend/app/controllers/clientcontrollers/profile_ingest.controller.goindex cb1ab720..5ae968ca 100644--- a/backend/app/controllers/clientcontrollers/profile_ingest.controller.go+++ b/backend/app/controllers/clientcontrollers/profile_ingest.controller.go@@ -8,7 +8,6 @@ import ("time""github.com/gin-gonic/gin"- "github.com/tracewayapp/traceway/backend/app/hooks""github.com/tracewayapp/traceway/backend/app/middleware""github.com/tracewayapp/traceway/backend/app/models""github.com/tracewayapp/traceway/backend/app/monitoring"@@ -37,14 +36,6 @@ func (e profileIngestController) Ingest(c *gin.Context) {}}- if project != nil && project.OrganizationId != nil {- if !hooks.CanReport(*project.OrganizationId) {- monitoring.RecordRateLimited(*project.OrganizationId)- c.AbortWithStatus(http.StatusTooManyRequests)- return- }- }-body, err := io.ReadAll(c.Request.Body)if err != nil {c.JSON(http.StatusBadRequest, gin.H{"error": "failed to read request body"})diff --git a/backend/app/controllers/invitation.controller.go b/backend/app/controllers/invitation.controller.goindex 77b13d6b..0e9bcbe7 100644--- a/backend/app/controllers/invitation.controller.go+++ b/backend/app/controllers/invitation.controller.go@@ -7,6 +7,7 @@ import ("github.com/tracewayapp/traceway/backend/app/repositories""github.com/tracewayapp/traceway/backend/app/services""database/sql"+ "errors""fmt""net/http""strconv"@@ -70,6 +71,18 @@ func (c *invitationController) InviteUser(ctx *gin.Context) {return}+ if MemberLimitHook != nil {+ if err := MemberLimitHook(tx, organizationId); err != nil {+ var limitErr *LimitExceededError+ if errors.As(err, &limitErr) {+ ctx.JSON(http.StatusUnprocessableEntity, gin.H{"error": limitErr.Message})+ return+ }+ ctx.AbortWithError(http.StatusInternalServerError, traceway.NewStackTraceErrorf("member limit hook failed: %w", err))+ return+ }+ }+inviter, err := repositories.UserRepository.FindById(tx, userId)if err != nil || inviter == nil {ctx.AbortWithError(http.StatusInternalServerError, traceway.NewStackTraceErrorf("Failed to get inviter info: %w", err))diff --git a/backend/app/controllers/limits.go b/backend/app/controllers/limits.gonew file mode 100644index 00000000..09969ad7--- /dev/null+++ b/backend/app/controllers/limits.go@@ -0,0 +1,13 @@+package controllers++import "database/sql"++type LimitExceededError struct {+ Message string+}++func (e *LimitExceededError) Error() string { return e.Message }++var ProjectLimitHook func(tx *sql.Tx, orgId int) error++var MemberLimitHook func(tx *sql.Tx, orgId int) errordiff --git a/backend/app/controllers/otelcontrollers/otel.controller.go b/backend/app/controllers/otelcontrollers/otel.controller.goindex df72a91a..5c279e6e 100644--- a/backend/app/controllers/otelcontrollers/otel.controller.go+++ b/backend/app/controllers/otelcontrollers/otel.controller.go@@ -65,16 +65,18 @@ func (o otelController) ExportTraces(c *gin.Context) {}}- if project != nil && project.OrganizationId != nil {+ orgId := 0+ hasOrg := project != nil && project.OrganizationId != nil+ if hasOrg {+ orgId = *project.OrganizationIdif attrs := traceway.GetAttributesFromContext(c); attrs != nil {- attrs.SetTag("organization_id", fmt.Sprintf("%d", *project.OrganizationId))- }- if !hooks.CanReport(*project.OrganizationId) {- monitoring.RecordRateLimited(*project.OrganizationId)- c.AbortWithStatus(http.StatusTooManyRequests)- return+ attrs.SetTag("organization_id", fmt.Sprintf("%d", orgId))}}+ perm := hooks.IngestPermission{Exceptions: true, Data: true, Replay: true}+ if hasOrg {+ perm = hooks.IngestPermissionFor(orgId)+ }req, bodyBytes, err := decodeTraceRequest(c)if err != nil {c.JSON(http.StatusBadRequest, gin.H{"error": err.Error()})@@ -90,6 +92,20 @@ func (o otelController) ExportTraces(c *gin.Context) {monitoring.RecordHealthchecksDropped(monitoring.SignalTraces, droppedHealthchecks)}+ if !perm.Data {+ endpoints = nil+ tasks = nil+ spans = nil+ aiTraces = nil+ aiConversations = nil+ }+ if !perm.Exceptions {+ exceptions = nil+ }+ if hasOrg && (!perm.Data || !perm.Exceptions) {+ monitoring.RecordRateLimited(orgId)+ }+convertMs := msSince(convertStart)insertStart := time.Now()@@ -152,16 +168,22 @@ func (o otelController) ExportTraces(c *gin.Context) {aiTraceInfos = append(aiTraceInfos, hooks.AiTraceInfo{TraceName: at.TraceName, TotalCost: at.TotalCost})}- if project != nil && project.OrganizationId != nil {- hooks.BroadcastReport(hooks.ReportEvent{- OrganizationId: *project.OrganizationId,- ProjectId: projectId,- EndpointCount: len(endpoints),- ErrorCount: len(exceptions),- TaskCount: len(tasks),- ExceptionHashes: exceptionHashes,- AiTraces: aiTraceInfos,- })+ if hasOrg {+ ev := hooks.ReportEvent{+ OrganizationId: orgId,+ ProjectId: projectId,+ AiTraces: aiTraceInfos,+ }+ if perm.Data {+ ev.EndpointCount = len(endpoints)+ ev.TaskCount = len(tasks)+ ev.TelemetryBytes = bodyBytes+ }+ if perm.Exceptions {+ ev.ErrorCount = len(exceptions)+ ev.ExceptionHashes = exceptionHashes+ }+ hooks.BroadcastReport(ev)}writeTraceResponse(c)@@ -177,18 +199,21 @@ func (o otelController) ExportMetrics(c *gin.Context) {return}+ orgId := 0+ hasOrg := falseif project, exists := c.Get(middleware.ProjectContextKey); exists {if p, ok := project.(*models.Project); ok && p.OrganizationId != nil {+ orgId = *p.OrganizationId+ hasOrg = trueif attrs := traceway.GetAttributesFromContext(c); attrs != nil {- attrs.SetTag("organization_id", fmt.Sprintf("%d", *p.OrganizationId))- }- if !hooks.CanReport(*p.OrganizationId) {- monitoring.RecordRateLimited(*p.OrganizationId)- c.AbortWithStatus(http.StatusTooManyRequests)- return+ attrs.SetTag("organization_id", fmt.Sprintf("%d", orgId))}}}+ perm := hooks.IngestPermission{Exceptions: true, Data: true, Replay: true}+ if hasOrg {+ perm = hooks.IngestPermissionFor(orgId)+ }req, bodyBytes, err := decodeMetricsRequest(c)if err != nil {@@ -200,6 +225,14 @@ func (o otelController) ExportMetrics(c *gin.Context) {result := convertMetricPoints(projectId, req)convertMs := msSince(convertStart)+ if !perm.Data {+ result.Points = nil+ result.Entries = nil+ if hasOrg {+ monitoring.RecordRateLimited(orgId)+ }+ }+insertMs := 0.0if len(result.Points) > 0 {insertStart := time.Now()@@ -216,6 +249,14 @@ func (o otelController) ExportMetrics(c *gin.Context) {monitoring.RecordIngestBatch(monitoring.SignalMetrics, "metric_points", convertMs, insertMs, len(result.Points), bodyBytes)+ if hasOrg && perm.Data {+ hooks.BroadcastReport(hooks.ReportEvent{+ OrganizationId: orgId,+ ProjectId: projectId,+ TelemetryBytes: bodyBytes,+ })+ }+writeMetricsResponse(c)}@@ -229,19 +270,22 @@ func (o otelController) ExportLogs(c *gin.Context) {return}var existingProject *models.Project+ orgId := 0+ hasOrg := falseif project, exists := c.Get(middleware.ProjectContextKey); exists {if p, ok := project.(*models.Project); ok && p.OrganizationId != nil {existingProject = p+ orgId = *p.OrganizationId+ hasOrg = trueif attrs := traceway.GetAttributesFromContext(c); attrs != nil {- attrs.SetTag("organization_id", fmt.Sprintf("%d", *p.OrganizationId))- }- if !hooks.CanReport(*p.OrganizationId) {- monitoring.RecordRateLimited(*p.OrganizationId)- c.AbortWithStatus(http.StatusTooManyRequests)- return+ attrs.SetTag("organization_id", fmt.Sprintf("%d", orgId))}}}+ perm := hooks.IngestPermission{Exceptions: true, Data: true, Replay: true}+ if hasOrg {+ perm = hooks.IngestPermissionFor(orgId)+ }req, bodyBytes, err := decodeLogsRequest(c)if err != nil {@@ -253,6 +297,13 @@ func (o otelController) ExportLogs(c *gin.Context) {records := convertLogs(existingProject, c, projectId, req)convertMs := msSince(convertStart)+ if !perm.Data {+ records = nil+ if hasOrg {+ monitoring.RecordRateLimited(orgId)+ }+ }+insertMs := 0.0if len(records) > 0 {insertStart := time.Now()@@ -265,6 +316,14 @@ func (o otelController) ExportLogs(c *gin.Context) {monitoring.RecordIngestBatch(monitoring.SignalLogs, "log_records", convertMs, insertMs, len(records), bodyBytes)+ if hasOrg && perm.Data {+ hooks.BroadcastReport(hooks.ReportEvent{+ OrganizationId: orgId,+ ProjectId: projectId,+ TelemetryBytes: bodyBytes,+ })+ }+writeLogsResponse(c)}@@ -288,11 +347,6 @@ func (o otelController) ExportProfiles(c *gin.Context) {if attrs := traceway.GetAttributesFromContext(c); attrs != nil {attrs.SetTag("organization_id", fmt.Sprintf("%d", *project.OrganizationId))}- if !hooks.CanReport(*project.OrganizationId) {- monitoring.RecordRateLimited(*project.OrganizationId)- c.AbortWithStatus(http.StatusTooManyRequests)- return- }}payload, bodyBytes, err := decodeProfilesPayload(c)diff --git a/backend/app/controllers/project.controller.go b/backend/app/controllers/project.controller.goindex b72e555c..c929785a 100644--- a/backend/app/controllers/project.controller.go+++ b/backend/app/controllers/project.controller.go@@ -8,6 +8,7 @@ import ("github.com/tracewayapp/traceway/backend/app/profiling""github.com/tracewayapp/traceway/backend/app/repositories""database/sql"+ "errors""fmt""net/http""regexp"@@ -155,9 +156,19 @@ func (p projectController) CreateProject(c *gin.Context) {if currentProject == nil || currentProject.OrganizationId == nil {return nil, fmt.Errorf("current project has no organization")}+ if ProjectLimitHook != nil {+ if err := ProjectLimitHook(tx, *currentProject.OrganizationId); err != nil {+ return nil, err+ }+ }return repositories.ProjectRepository.CreateWithOrganization(tx, request.Name, request.Framework, *currentProject.OrganizationId)})if err != nil {+ var limitErr *LimitExceededError+ if errors.As(err, &limitErr) {+ c.JSON(http.StatusUnprocessableEntity, gin.H{"error": limitErr.Message})+ return+ }c.AbortWithError(500, traceway.NewStackTraceErrorf("error creating a project: %w", err))return}diff --git a/backend/app/hooks/report_hooks.go b/backend/app/hooks/report_hooks.goindex 4b321783..005dd225 100644--- a/backend/app/hooks/report_hooks.go+++ b/backend/app/hooks/report_hooks.go@@ -18,6 +18,8 @@ type ReportEvent struct {ErrorCount intTaskCount intRecordingCount int+ TelemetryBytes int+ RecordingBytes intExceptionHashes []stringAiTraces []AiTraceInfo}@@ -43,26 +45,30 @@ func BroadcastReport(event ReportEvent) {}}-type CanReportHook func(orgId int) bool+type IngestPermission struct {+ Exceptions bool+ Data bool+ Replay bool+}var (- canReportHook CanReportHook- canReportHookMu sync.RWMutex+ ingestPermissionHook func(orgId int) IngestPermission+ ingestPermissionHookMu sync.RWMutex)-func RegisterCanReportHook(fn CanReportHook) {- canReportHookMu.Lock()- defer canReportHookMu.Unlock()- canReportHook = fn+func RegisterIngestPermissionHook(fn func(orgId int) IngestPermission) {+ ingestPermissionHookMu.Lock()+ defer ingestPermissionHookMu.Unlock()+ ingestPermissionHook = fn}-func CanReport(orgId int) bool {- canReportHookMu.RLock()- hook := canReportHook- canReportHookMu.RUnlock()+func IngestPermissionFor(orgId int) IngestPermission {+ ingestPermissionHookMu.RLock()+ hook := ingestPermissionHook+ ingestPermissionHookMu.RUnlock()if hook == nil {- return true+ return IngestPermission{Exceptions: true, Data: true, Replay: true}}return hook(orgId)}diff --git a/backend/app/migrations/ch/0075_increase_ttl_log_records.up.sql b/backend/app/migrations/ch/0075_increase_ttl_log_records.up.sqlnew file mode 100644index 00000000..a659ecc7--- /dev/null+++ b/backend/app/migrations/ch/0075_increase_ttl_log_records.up.sql@@ -0,0 +1 @@+ALTER TABLE log_records MODIFY TTL timestamp_date + INTERVAL 90 DAYdiff --git a/frontend/vite.config.ts b/frontend/vite.config.tsindex 95e4bcca..8528604f 100644--- a/frontend/vite.config.ts+++ b/frontend/vite.config.ts@@ -61,10 +61,10 @@ export default defineConfig(({ mode }) => {sourcemap: 'hidden'},resolve: {- dedupe: ['d3-scale', 'd3-array', 'lucide-svelte', 'svelte']+ dedupe: ['d3-scale', 'd3-array', 'lucide-svelte', 'svelte', 'svelte-sonner']},optimizeDeps: {- include: ['d3-scale', 'd3-array', 'lucide-svelte']+ include: ['d3-scale', 'd3-array', 'lucide-svelte', 'svelte-sonner']},server: {proxy: {diff --git a/website/app/cloud/page.tsx b/website/app/cloud/page.tsxindex 8c34ccbb..08c19925 100644--- a/website/app/cloud/page.tsx+++ b/website/app/cloud/page.tsx@@ -6,8 +6,7 @@ import { SectionHead } from "@/components/section-head";import { FaqList } from "@/components/faq-list";import { FinalCTA } from "@/components/final-cta";import { AuroraBackground } from "@/components/aurora-background";-import { PricingCalculator } from "@/components/pricing-calculator";-import { CostComparison } from "@/components/cost-comparison";+import { PricingPlans, PlanComparison } from "@/components/pricing-plans";import { ComplianceStrip } from "@/components/compliance-strip";import { getCalendlyUrl } from "@/lib/calendly";@@ -30,10 +29,16 @@ export default function CloudPage() {managed by us.</p><div className="hero-cta-row">- <Link href="https://cloud.tracewayapp.com/register" className="btn btn-accent">+ <Link+ href="https://cloud.tracewayapp.com/register"+ className="btn btn-accent"+ >Start Free <ArrowRight className="h-4 w-4" /></Link>- <Link href="https://docs.tracewayapp.com/cloud" className="btn btn-ghost">+ <Link+ href="https://docs.tracewayapp.com/cloud"+ className="btn btn-ghost"+ >How it works</Link></div>@@ -43,39 +48,13 @@ export default function CloudPage() {{/* Pricing */}{/* WHITE BAND: pricing + cost comparison render on white */}<div className="band-light">- <section className="wrap py-20">- <SectionHead- eyebrow="Pricing"- title="Simple, predictable pricing"- description="Start free and scale as you grow. No credit card required for the Starter plan."- />- <div className="mt-8">- <PricingCalculator />- </div>+ <section className="wrap md:py-20! py-10!">+ <SectionHead align="center" title="Pricing that scales with you" />+ <PricingPlans /></section>- {/* Cost comparison / cost advantage, absorbed from home */}- <section className="wrap py-10" id="cost-mount" data-cost-mount>- <SectionHead- eyebrow="Cost"- title={- <>- Designed for efficiency. <em>Built to lower your cloud bill.</em>- </>- }- description="Traceway runs lean. ClickHouse columnar storage compresses 1 million daily events into ~2-3 GB per month. Postgres is used for efficient user and organization storage."- />- <div className="mt-8">- <CostComparison />- </div>- <div className="mt-10 flex flex-col sm:flex-row items-center justify-center gap-3">- <Link href="https://cloud.tracewayapp.com/register" className="btn btn-accent">- Start on Cloud <ArrowRight className="h-4 w-4" />- </Link>- <Link href="https://docs.tracewayapp.com" className="btn btn-ghost">- Self-host for free- </Link>- </div>+ <section className="wrap pb-20">+ <PlanComparison /></section>{/* Security & compliance */}@@ -116,33 +95,35 @@ export default function CloudPage() {{/* FAQ, includes absorbed from home */}<section className="wrap pt-10 pb-24"><div className="max-w-3xl mx-auto">- <SectionHead align="center" eyebrow="FAQ" title="Cloud & pricing FAQ" />+ <SectionHead+ align="center"+ eyebrow="FAQ"+ title="Cloud & pricing FAQ"+ /><div className="mt-4"><FaqListitems={[{- q: "How does Traceway compare to Datadog / New Relic?",+ q: "Why is Traceway so cost-effective?",a: (<><p>- Datadog and New Relic charge per host, per event, or per- GB ingested, and bills can spike unpredictably as- traffic grows. Traceway Cloud has fixed-price tiers.- At the Enterprise level, 200 million monthly events- cost $499.99 ($0.0000025 per event) with no overage- charges. Self-hosted Traceway has zero licensing cost.+ Pricing comes down to two simple meters: a fixed monthly+ tier for exceptions, and data (logs, traces, spans,+ metrics, replay) at a flat $0.25/GB after a generous+ included allowance. There are no per-host or per-seat+ fees layered on top, and self-hosted Traceway has zero+ licensing cost.</p><p>Architecturally, Traceway uses ClickHouse columnar- storage that compresses 1 million daily events into- ~2-3 GB per month, keeping infrastructure costs low even- at high volume. Feature-wise, Traceway includes- endpoint performance analytics, exception tracking with- automatic grouping and ranking, session replay,- distributed tracing, metrics, logs, and AI- observability, all in one tool. Datadog and New Relic- split these across separate products, each with its- own billing meter.+ storage that compresses 1 million daily events into ~2-3+ GB per month, keeping the per-GB rate low even at high+ volume. Everything is in one tool: endpoint performance+ analytics, exception tracking with automatic grouping+ and ranking, session replay, distributed tracing,+ metrics, logs, and AI observability, with a single bill+ instead of a separate meter per product.</p></>),@@ -163,23 +144,23 @@ export default function CloudPage() {},{q: "Will my bill ever increase unexpectedly?",- a: "No. Every Traceway Cloud plan has a fixed monthly price with no overage charges. If you approach your included volume, we notify you in advance so you can decide whether to upgrade. Your bill will never increase without your explicit approval. This applies to every tier, from Starter to Enterprise.",+ a: "No. Your plan price is fixed, and data is billed at a flat, published per-GB rate with a generous allowance included on every tier. If you approach your data allowance, we notify you in advance so you can decide whether to upgrade or keep going. There are no per-host or per-seat surprises, and we never apply a new rate without telling you first.",},{q: "What support do Cloud customers get?",a: "All Cloud customers on a paid plan can open GitHub issues that are triaged with highest priority by our engineering team. You talk directly to the people who build Traceway, with no help desk routing. Enterprise+ customers also receive a shared Slack channel with direct access to the team. Self-hosted users are welcome to open GitHub issues and participate in community discussions. We actively monitor and respond.",},{- q: "Are there overage charges?",- a: "No. Every plan has a fixed monthly price. If you approach your included volume, we notify you in advance so you can decide whether to upgrade. What you see on the pricing table is what you pay. No metered billing, no surprise line items, no usage-based surcharges.",+ q: "How does data billing work?",+ a: "Each plan includes an allowance for data ingested, covering your logs, traces, spans, metrics, and session replay (for example, 150 GB on Premium). If you stay within it, you only pay the fixed plan price. Beyond the allowance, ingested data is billed at a flat, published per-GB rate ($0.25/GB, dropping to $0.20/GB on Enterprise) with no per-host or per-seat add-ons. We meter the volume you send us, not your compressed storage, so the rate is predictable, and we warn you before you exceed your allowance.",},{- q: "How does Traceway Cloud compare on cost at scale?",- a: "At the Enterprise tier, 200 million monthly events cost $499.99, which is $0.0000025 per event. Competitors like Datadog and Sentry charge orders of magnitude more at the same volume, often with additional per-host, per-seat, or overage fees on top. Enterprise+ offers even cheaper per-event pricing with a dedicated SRE and shared Slack channel.",+ q: "How does pricing work at scale?",+ a: "Data is where observability bills usually grow, so that is where Traceway stays lean: a flat $0.25/GB, dropping to $0.20/GB on Enterprise, with no per-host or per-seat fees on top. Your exception plan stays a fixed monthly price. Enterprise+ adds the best volume rate plus a dedicated SRE and a shared Slack channel.",},{- q: "What counts as an event?",- a: "An event is any single issue (exception), HTTP request, or background task run that Traceway ingests. Session replays, distributed trace spans, custom metrics, and logs are included at no additional cost and do not count toward your event volume. For example, if your application handles 50,000 HTTP requests and encounters 200 exceptions in a month, that is 50,200 events.",+ q: "What do you charge for, and what is free?",+ a: "Two things. First, exceptions, billed as a fixed monthly tier (10k free on Starter, up to 200M on Enterprise). Second, data, meaning your logs, distributed trace spans, custom metrics, and session replay, billed by the gigabyte ingested after a generous per-plan allowance. HTTP requests and background task runs are not metered. For example, on Premium you get 1M exceptions and 150 GB of ingested data included for $24.99/mo, then $0.25 for each additional GB.",},{q: "Can I migrate from Cloud to Self-Hosted later?",diff --git a/website/app/product/agent-skills/page.tsx b/website/app/product/agent-skills/page.tsxindex 1083cbfa..0ebdaa6a 100644--- a/website/app/product/agent-skills/page.tsx+++ b/website/app/product/agent-skills/page.tsx@@ -12,6 +12,7 @@ import { Eyebrow } from "@/components/eyebrow";import { Terminal } from "@/components/terminal";import { SkillInstallCommand } from "@/components/skill-install-command";import { AgentDebugTerminal } from "@/components/agent-debug-terminal";+import { VideoPlayer } from "@/components/video-player";import { GITHUB_URL } from "@/lib/links";export const metadata: Metadata = {@@ -85,6 +86,25 @@ export default function AgentSkillsPage() {</div></section>+ <div className="band-light">+ <section className="wrap pt-15 pb-6">+ <div className="mx-auto flex max-w-3xl flex-col items-center gap-4 text-center">+ <h2>+ See it <em>in action</em>+ </h2>+ <p className="muted max-w-[560px] text-pretty">+ Watch an agent set up Traceway, pull production telemetry through+ the CLI, and walk a bug all the way to its root cause.+ </p>+ </div>+ <div className="mx-auto mt-12 max-w-4xl">+ <VideoPlayer+ src="/videos/agent-skills-demo.mp4"+ poster="/videos/agent-skills-demo.jpg"+ />+ </div>+ </section>+ </div><div className="band-light"><section className="wrap"><div className="feature-row">@@ -118,8 +138,8 @@ export default function AgentSkillsPage() {</h2><p>Built for non-interactive use: JSON output, stable errors, and- nothing that hangs waiting for input. Humans on a TTY still- get tables.+ nothing that hangs waiting for input. Humans on a TTY still get+ tables.</p><ul className="feat-bullets"><li>JSON when piped, tables on a TTY</li>@@ -144,8 +164,7 @@ export default function AgentSkillsPage() {{ln: "2",type: "mute",- content:- '{"hash":"82b58892","type":"TypeError","count":412}',+ content: '{"hash":"82b58892","type":"TypeError","count":412}',},{ln: "3",@@ -168,8 +187,8 @@ export default function AgentSkillsPage() {type: "tx",content: (<>- <span className="cmd">$</span> traceway exceptions- archive 82b58892+ <span className="cmd">$</span> traceway exceptions archive+ 82b58892</>),},@@ -255,8 +274,8 @@ export default function AgentSkillsPage() {<h2>One format, every agent</h2><p style={{ color: "var(--fg-1)", fontSize: 17 }}>Skills are plain Markdown in the open SKILL.md format. No- marketplace, no lock-in. They live in the same MIT-licensed- repo as Traceway itself.+ marketplace, no lock-in. They live in the same MIT-licensed repo+ as Traceway itself.</p><div className="flex flex-wrap items-center justify-center gap-2.5 pt-2">{AGENTS.map((agent) => (diff --git a/website/components/agent-debug-terminal.tsx b/website/components/agent-debug-terminal.tsxindex 34b100cf..6351016d 100644--- a/website/components/agent-debug-terminal.tsx+++ b/website/components/agent-debug-terminal.tsx@@ -32,7 +32,18 @@ export function AgentDebugTerminal({ className }: { className?: string }) {</div><div className="mt-1 grid grid-cols-[14px_1fr] gap-x-2">- <span className="text-ok">⏺</span>+ <span+ className="text-ok"+ aria-hidden+ style={{+ display: "inline-block",+ width: "9px",+ height: "9px",+ marginTop: "7px",+ borderRadius: "100%",+ backgroundColor: "currentColor",+ }}+ /><span className="whitespace-pre-wrap"><span className="text-fg-0">Bash</span><span className="text-fg-2">@@ -48,7 +59,18 @@ export function AgentDebugTerminal({ className }: { className?: string }) {</div><div className="mt-1 grid grid-cols-[14px_1fr] gap-x-2">- <span className="text-ok">⏺</span>+ <span+ className="text-ok"+ aria-hidden+ style={{+ display: "inline-block",+ width: "9px",+ height: "9px",+ marginTop: "7px",+ borderRadius: "100%",+ backgroundColor: "currentColor",+ }}+ /><span className="whitespace-pre-wrap"><span className="text-fg-0">Bash</span><span className="text-fg-2">@@ -64,7 +86,18 @@ export function AgentDebugTerminal({ className }: { className?: string }) {</div><div className="mt-1 grid grid-cols-[14px_1fr] gap-x-2">- <span className="text-ok">⏺</span>+ <span+ className="text-ok"+ aria-hidden+ style={{+ display: "inline-block",+ width: "9px",+ height: "9px",+ marginTop: "7px",+ borderRadius: "100%",+ backgroundColor: "currentColor",+ }}+ /><span className="whitespace-pre-wrap"><span className="text-fg-0">Read</span><span className="text-fg-2">(src/checkout/session.ts)</span>@@ -78,7 +111,18 @@ export function AgentDebugTerminal({ className }: { className?: string }) {</div><div className="mt-1 grid grid-cols-[14px_1fr] gap-x-2">- <span className="text-fg-0">⏺</span>+ <span+ className="text-fg-0"+ aria-hidden+ style={{+ display: "inline-block",+ width: "9px",+ height: "9px",+ marginTop: "7px",+ borderRadius: "100%",+ backgroundColor: "currentColor",+ }}+ /><span className="whitespace-pre-wrap text-fg-1">Root cause: repeat purchase reuses an expired cart. Fix ready forreview in src/checkout/session.ts:42.diff --git a/website/components/compliance-strip.tsx b/website/components/compliance-strip.tsxindex eedd9db6..5a9afe00 100644--- a/website/components/compliance-strip.tsx+++ b/website/components/compliance-strip.tsx@@ -29,24 +29,36 @@ const ITEMS: Item[] = [export function ComplianceStrip() {return (- <div className="grid gap-4 sm:grid-cols-2">+ <div className="grid gap-5 sm:grid-cols-2">{ITEMS.map((item) => (<divkey={item.name}className="flex items-start gap-4 rounded-2xl p-5"- style={{ background: "var(--ink-1)", border: "1px solid var(--hair)" }}+ style={{+ background: "var(--ink-0)",+ border: "1px solid var(--hair-2)",+ boxShadow:+ "0 1px 2px rgba(10,14,24,0.04), 0 12px 30px -18px rgba(10,14,24,0.14)",+ }}>- <div- className="grid size-10 shrink-0 place-items-center rounded-xl"- style={{ background: "var(--ink-3)", border: "1px solid var(--hair)" }}- >- <item.icon className="size-5" style={{ color: "var(--a2)" }} aria-hidden />+ <div className="grid size-10 shrink-0 place-items-center rounded-xl">+ <item.icon+ className="size-5"+ style={{ color: "var(--a2)" }}+ aria-hidden+ /></div><div className="min-w-0">- <div className="text-[15px] font-semibold" style={{ color: "var(--fg-0)" }}>+ <div+ className="text-[15px] font-semibold"+ style={{ color: "var(--fg-0)" }}+ >{item.name}</div>- <p className="mt-0.5 text-[12.5px] leading-snug" style={{ color: "var(--fg-2)" }}>+ <p+ className="mt-0.5 text-[12.5px] leading-snug"+ style={{ color: "var(--fg-2)" }}+ >{item.detail}</p><div className="mt-2.5">@@ -61,7 +73,7 @@ export function ComplianceStrip() {function StatusPill({ status, label }: { status: Status; label: string }) {const isReady = status === "ready";- const tone = isReady ? "var(--ok)" : "var(--a4)";+ const tone = "var(--ok)";return (<spanclassName="inline-flex items-center gap-1.5 rounded-full px-2.5 py-1 text-[11px] font-medium"@@ -69,8 +81,7 @@ function StatusPill({ status, label }: { status: Status; label: string }) {fontFamily: "var(--font-mono)",letterSpacing: "0.04em",color: tone,- background: "var(--ink-2)",- border: "1px solid var(--hair)",+ border: "1px solid var(--ok)",}}><span className="relative flex size-1.5">diff --git a/website/components/cost-comparison.tsx b/website/components/cost-comparison.tsxdeleted file mode 100644index dc3b7bf1..00000000--- a/website/components/cost-comparison.tsx+++ /dev/null@@ -1,64 +0,0 @@-import { DollarSign, Database, ShieldCheck } from "lucide-react";--const cards = [- {- icon: DollarSign,- color: "var(--ok)",- title: "No per-event pricing",- description:- "Competitors charge more as you grow. Self-host on your own infrastructure or use Cloud with fixed-price tiers. No per-event, per-host, or per-seat fees.",- },- {- icon: Database,- color: "var(--a2)",- title: "ClickHouse compression",- description:- "Columnar storage compresses 1 million daily events into ~2-3 GB per month. Your storage bill stays tiny.",- },- {- icon: ShieldCheck,- color: "var(--a4)",- title: "Fixed costs, not surprises",- description:- "Every plan has a fixed monthly price. No metered billing, no overage charges, no surprise line items. Your bill never increases without your approval.",- },-];--export function CostComparison() {- return (- <div className="grid grid-cols-1 md:grid-cols-3 gap-4">- {cards.map((card) => {- const Icon = card.icon;- return (- <div- key={card.title}- className="surface-card"- style={{- padding: 24,- }}- >- <div- className="w-10 h-10 rounded-[8px] flex items-center justify-center mb-4"- style={{- background: `color-mix(in oklab, ${card.color} 18%, transparent)`,- border: `1px solid color-mix(in oklab, ${card.color} 40%, transparent)`,- color: card.color,- }}- >- <Icon className="w-5 h-5" />- </div>- <div- className="text-[17px] font-semibold mb-2"- style={{ color: "var(--fg-0)", fontFamily: "var(--font-display)" }}- >- {card.title}- </div>- <div className="text-[14px]" style={{ color: "var(--fg-2)", lineHeight: 1.55 }}>- {card.description}- </div>- </div>- );- })}- </div>- );-}diff --git a/website/components/pricing-calculator.tsx b/website/components/pricing-calculator.tsxdeleted file mode 100644index 0a246ad4..00000000--- a/website/components/pricing-calculator.tsx+++ /dev/null@@ -1,168 +0,0 @@-"use client";--import Link from "next/link";-import { ArrowRight } from "lucide-react";--const TIERS = [- {- id: "starter",- name: "Starter",- limit: "10k",- price: "Free",- description: "10k issues, requests, task runs",- },- {- id: "pro",- name: "Pro",- limit: "100k",- price: "$12.99",- monthlyLabel: "/ mo",- description: "100k issues, requests, task runs",- },- {- id: "premium",- name: "Premium",- limit: "1M",- price: "$24.99",- monthlyLabel: "/ mo",- description: "1 million issues, requests, task runs",- },- {- id: "enterprise",- name: "Enterprise",- limit: "200M",- price: "$499.99",- monthlyLabel: "/ mo",- description: "200M events. $0.0000025 / event.",- highlight: true,- },- {- id: "enterprise-plus",- name: "Enterprise+",- limit: "Unlimited",- price: "Contact Us",- description:- "Dedicated SRE, shared Slack, tailored SLAs. No data leaves your cloud.",- badge: "Managed self-hosting",- },-];--export function PricingCalculator() {- return (- <div className="w-full max-w-5xl mx-auto">- <div- className="rounded-[14px] overflow-hidden"- style={{- background: "linear-gradient(180deg, var(--ink-3), var(--ink-2))",- border: "1px solid var(--hair-2)",- }}- >- <div- className="grid grid-cols-12 gap-4 px-6 py-3 text-[11px] font-semibold uppercase tracking-wider"- style={{- background: "rgba(0,0,0,0.15)",- borderBottom: "1px solid var(--hair)",- color: "var(--fg-3)",- fontFamily: "var(--font-mono)",- }}- >- <div className="col-span-3">Tier</div>- <div className="col-span-3">Monthly events</div>- <div className="col-span-3">Price</div>- <div className="col-span-3">Includes</div>- </div>-- <div>- {TIERS.map((tier, i) => (- <div- key={tier.id}- className="grid grid-cols-12 gap-4 px-6 py-5 items-center transition-colors hover:bg-[color:color-mix(in_oklab,var(--fg-0)_3%,transparent)]"- style={{- borderBottom: i < TIERS.length - 1 ? "1px solid var(--hair)" : "none",- background: tier.highlight- ? "linear-gradient(90deg, color-mix(in oklab, var(--a1) 12%, transparent), transparent)"- : undefined,- }}- >- <div- className="col-span-3 font-semibold flex flex-col gap-1.5"- style={{- color: tier.highlight ? "var(--a2)" : "var(--fg-0)",- fontFamily: "var(--font-display)",- }}- >- <span>{tier.name}</span>- {tier.badge ? (- <span- className="inline-flex items-center self-start gap-1 px-2 py-0.5 rounded text-[10px] font-medium uppercase tracking-wider"- style={{- fontFamily: "var(--font-mono)",- color: "var(--ok)",- background: "color-mix(in oklab, var(--ok) 12%, transparent)",- border: "1px solid color-mix(in oklab, var(--ok) 35%, transparent)",- letterSpacing: "0.08em",- }}- >- {tier.badge}- </span>- ) : null}- </div>- <div- className="col-span-3 text-sm"- style={{ color: "var(--fg-1)", fontFamily: "var(--font-mono)" }}- >- {tier.limit}- </div>- <div- className="col-span-3 font-semibold"- style={{- color: "var(--fg-0)",- fontFamily: "var(--font-display)",- }}- >- {tier.price}- {tier.monthlyLabel ? (- <span- className="ml-1 text-xs font-normal"- style={{ color: "var(--fg-3)" }}- >- {tier.monthlyLabel}- </span>- ) : null}- </div>- <div- className="col-span-3 text-xs leading-relaxed"- style={{ color: "var(--fg-2)" }}- >- {tier.description}- </div>- </div>- ))}- </div>-- <div- className="px-6 py-5 text-center space-y-2"- style={{- borderTop: "1px solid var(--hair)",- background: "color-mix(in oklab, var(--ok) 6%, transparent)",- }}- >- <p className="text-sm" style={{ color: "var(--fg-1)" }}>- <span style={{ color: "var(--fg-0)", fontWeight: 600 }}>No overage charges, ever.</span>{" "}- Every plan has a fixed price. If you approach your limit, we'll notify you. Your bill- will never increase without your approval.- </p>- <p className="text-xs" style={{ color: "var(--fg-3)" }}>- Each issue, HTTP request, or background task run counts as one event toward your monthly volume.- </p>- </div>- </div>-- <div className="mt-8 flex justify-center">- <Link href="https://cloud.tracewayapp.com/register" className="btn btn-accent">- Try for free <ArrowRight className="ml-1 h-4 w-4" />- </Link>- </div>- </div>- );-}diff --git a/website/components/pricing-plans.tsx b/website/components/pricing-plans.tsxnew file mode 100644index 00000000..3da19fc1--- /dev/null+++ b/website/components/pricing-plans.tsx@@ -0,0 +1,476 @@+import Link from "next/link";+import { ArrowRight, Check, Minus } from "lucide-react";++import { getCalendlyUrl } from "@/lib/calendly";++const REGISTER_URL = "https://cloud.tracewayapp.com/register";++type Plan = {+ id: string;+ name: string;+ blurb: string;+ price: string;+ period?: string;+ cta: { label: string; href: string };+ featuresLead?: string;+ features: string[];+ highlight?: boolean;+ badge?: string;+};++const PLANS: Plan[] = [+ {+ id: "starter",+ name: "Starter",+ blurb: "For hobby projects and early prototypes.",+ price: "Free",+ cta: { label: "Start free", href: REGISTER_URL },+ featuresLead: "Includes",+ features: [+ "10k exceptions / mo",+ "1 GB ingest / mo",+ "Distributed tracing, logs & metrics",+ "Session replay",+ "Community support",+ ],+ },+ {+ id: "pro",+ name: "Pro",+ blurb: "For small teams shipping to production.",+ price: "$12.99",+ period: "/ mo",+ cta: { label: "Start free", href: REGISTER_URL },+ featuresLead: "Everything in Starter, plus",+ features: [+ "100k exceptions / mo",+ "50 GB ingest / mo",+ "$0.25 / GB beyond",+ "Priority issue triage",+ ],+ },+ {+ id: "premium",+ name: "Premium",+ blurb: "For growing products with real traffic.",+ price: "$24.99",+ period: "/ mo",+ highlight: true,+ badge: "Most popular",+ cta: { label: "Start free", href: REGISTER_URL },+ featuresLead: "Everything in Pro, plus",+ features: [+ "1M exceptions / mo",+ "150 GB ingest / mo",+ "$0.25 / GB beyond",+ "90-day data retention",+ ],+ },+ {+ id: "enterprise",+ name: "Enterprise",+ blurb: "For high volume at the best per-GB rate.",+ price: "$499.99",+ period: "/ mo",+ cta: { label: "Start free", href: REGISTER_URL },+ featuresLead: "Everything in Premium, plus",+ features: [+ "200M exceptions / mo",+ "2 TB ingest / mo",+ "$0.20 / GB beyond",+ "Shared Slack channel",+ ],+ },+ {+ id: "enterprise-plus",+ name: "Enterprise+",+ blurb: "Managed self-hosting with custom SLAs.",+ price: "Custom",+ badge: "Managed self-hosting",+ cta: { label: "Contact us", href: getCalendlyUrl() },+ featuresLead: "Everything in Enterprise, plus",+ features: [+ "Unlimited exceptions",+ "Custom data volume",+ "Dedicated SRE",+ "No data leaves your cloud",+ ],+ },+];++export function PricingPlans() {+ return (+ <div className="grid items-stretch gap-5 md:grid-cols-2 xl:grid-cols-5">+ {PLANS.map((plan) => (+ <div+ key={plan.id}+ className="relative flex flex-col rounded-[20px] px-6 py-7"+ style={+ plan.highlight+ ? {+ background: "var(--ink-0)",+ border:+ "1px solid color-mix(in oklab, var(--a2) 55%, transparent)",+ boxShadow:+ "0 2px 6px rgba(10,14,24,0.05), 0 24px 50px -26px color-mix(in oklab, var(--a2) 28%, rgba(10,14,24,0.22))",+ }+ : {+ background: "var(--ink-0)",+ border: "1px solid var(--hair-2)",+ boxShadow:+ "0 1px 2px rgba(10,14,24,0.04), 0 12px 30px -18px rgba(10,14,24,0.14)",+ }+ }+ >+ {plan.badge ? (+ <span+ className="absolute -top-3 left-1/2 -translate-x-1/2 whitespace-nowrap rounded-full px-3 py-1 text-[11px] font-medium"+ style={+ plan.highlight+ ? { color: "var(--ink-0)", background: "var(--a2)" }+ : {+ color: "var(--ok)",+ background: "var(--ink-0)",+ border:+ "1px solid color-mix(in oklab, var(--ok) 45%, transparent)",+ }+ }+ >+ {plan.badge}+ </span>+ ) : null}++ <div+ className="text-[17px] font-semibold"+ style={{ color: "var(--fg-0)" }}+ >+ {plan.name}+ </div>+ <p+ className="mt-2 min-h-[38px] text-[13.5px]"+ style={{ color: "var(--fg-2)", lineHeight: 1.45 }}+ >+ {plan.blurb}+ </p>++ <div className="mt-5 flex items-baseline gap-1.5 whitespace-nowrap">+ <span+ className="text-[32px] font-bold leading-none tracking-[-0.02em]"+ style={{ color: "var(--fg-0)" }}+ >+ {plan.price}+ </span>+ {plan.period ? (+ <span className="text-[14px]" style={{ color: "var(--fg-3)" }}>+ {plan.period}+ </span>+ ) : null}+ </div>++ <Link+ href={plan.cta.href}+ className={`btn ${plan.highlight ? "btn-accent" : "btn-ghost"} mt-6 w-full justify-center`}+ >+ {plan.cta.label}+ <ArrowRight className="h-4 w-4" />+ </Link>++ <div className="pt-7">+ {plan.featuresLead ? (+ <div+ className="mb-4 text-[12px] font-medium"+ style={{ color: "var(--fg-2)" }}+ >+ {plan.featuresLead}+ </div>+ ) : null}+ <ul className="flex flex-col gap-3">+ {plan.features.map((f) => (+ <li+ key={f}+ className="flex items-start gap-2.5 text-[13.5px]"+ style={{ color: "var(--fg-1)" }}+ >+ <Check+ className="mt-[3px] h-[15px] w-[15px] shrink-0"+ style={{ color: "var(--ok)" }}+ />+ <span style={{ lineHeight: 1.4 }}>{f}</span>+ </li>+ ))}+ </ul>+ </div>+ </div>+ ))}+ </div>+ );+}++type Cell = string | boolean;+type CompareGroup = {+ category: string;+ rows: { label: string; values: Cell[] }[];+};++const PLAN_COLS = ["Starter", "Pro", "Premium", "Enterprise", "Enterprise+"];+const HIGHLIGHT_COL = 2;++const COMPARISON: CompareGroup[] = [+ {+ category: "Pricing",+ rows: [+ {+ label: "Monthly price",+ values: ["Free", "$12.99", "$24.99", "$499.99", "Custom"],+ },+ {+ label: "Data overage rate",+ values: ["—", "$0.25 / GB", "$0.25 / GB", "$0.20 / GB", "Volume rate"],+ },+ ],+ },+ {+ category: "Exceptions",+ rows: [+ {+ label: "Exceptions / month",+ values: ["10k", "100k", "1M", "200M", "Unlimited"],+ },+ {+ label: "Automatic grouping & ranking (SLO)",+ values: [true, true, true, true, true],+ },+ {+ label: "Source-mapped stack traces",+ values: [true, true, true, true, true],+ },+ {+ label: "Archive & resolve workflow (AI)",+ values: [true, true, true, true, true],+ },+ ],+ },+ {+ category: "Data ingest (logs, traces, spans, metrics, replay)",+ rows: [+ {+ label: "Data ingest included / mo",+ values: ["1 GB", "50 GB", "150 GB", "2 TB", "Custom"],+ },+ {+ label: "Beyond included",+ values: [+ "Upgrade to add",+ "$0.25 / GB",+ "$0.25 / GB",+ "$0.20 / GB",+ "Volume rate",+ ],+ },+ { label: "Distributed tracing", values: [true, true, true, true, true] },+ { label: "Session replay", values: [true, true, true, true, true] },+ {+ label: "Logs & custom metrics",+ values: [true, true, true, true, true],+ },+ {+ label: "AI / LLM observability",+ values: [true, true, true, true, true],+ },+ ],+ },+ {+ category: "Platform",+ rows: [+ {+ label: "Projects",+ values: ["3", "10", "Unlimited", "Unlimited", "Unlimited"],+ },+ {+ label: "Team members",+ values: ["3", "Unlimited", "Unlimited", "Unlimited", "Unlimited"],+ },+ {+ label: "Data retention*",+ values: ["7 days", "30 days", "90 days", "Custom", "Custom"],+ },+ {+ label: "Alerting & notifications",+ values: [true, true, true, true, true],+ },+ ],+ },+ {+ category: "Support",+ rows: [+ {+ label: "Community & GitHub issues",+ values: [true, true, true, true, true],+ },+ {+ label: "Priority issue triage",+ values: [false, true, true, true, true],+ },+ {+ label: "Shared Slack channel",+ values: [false, false, false, true, true],+ },+ { label: "Dedicated SRE", values: [false, false, false, false, true] },+ { label: "Custom SLAs", values: [false, false, false, false, true] },+ {+ label: "Self-host, data stays in your cloud",+ values: [false, false, false, false, true],+ },+ ],+ },+];++function Value({ value, highlight }: { value: Cell; highlight: boolean }) {+ if (value === true) {+ return (+ <Check+ className="mx-auto h-[17px] w-[17px]"+ style={{ color: highlight ? "var(--a2)" : "var(--ok)" }}+ />+ );+ }+ if (value === false) {+ return (+ <Minus+ className="mx-auto h-[16px] w-[16px]"+ style={{ color: "var(--fg-3)" }}+ />+ );+ }+ return (+ <span+ className="text-[13px]"+ style={{+ color: highlight ? "var(--a2)" : "var(--fg-1)",+ fontWeight: highlight ? 600 : 400,+ }}+ >+ {value}+ </span>+ );+}++const HILITE = "color-mix(in oklab, var(--a2) 8%, transparent)";+const GRID_COLS = "1.7fr repeat(5, 1fr)";++export function PlanComparison() {+ return (+ <div className="overflow-x-auto min-[940px]:overflow-visible">+ <div className="min-w-[880px]">+ {/* Sticky: section title + column headers pin below the navbar (h-16 = 64px) */}+ <div+ className="sticky z-30"+ style={{+ top: "64px",+ background: "var(--ink-0)",+ borderBottom: "1px solid var(--hair-2)",+ boxShadow: "0 10px 18px -14px rgba(10,14,24,0.1)",+ }}+ >+ <h2+ className="px-3 pb-4 pt-6 text-center text-[26px] font-bold tracking-tight"+ style={{ color: "var(--fg-0)" }}+ >+ A closer look at each plan+ </h2>+ <div className="grid" style={{ gridTemplateColumns: GRID_COLS }}>+ <div />+ {PLAN_COLS.map((name, i) => (+ <div+ key={name}+ className="flex items-center justify-center px-3 pb-3 pt-2 text-center text-[14px] font-semibold"+ style={{+ color: i === HIGHLIGHT_COL ? "var(--a2)" : "var(--fg-0)",+ background: i === HIGHLIGHT_COL ? HILITE : undefined,+ borderTopLeftRadius: i === HIGHLIGHT_COL ? 14 : undefined,+ borderTopRightRadius: i === HIGHLIGHT_COL ? 14 : undefined,+ }}+ >+ {name}+ </div>+ ))}+ </div>+ </div>++ {COMPARISON.map((group, gi) => (+ <div key={group.category}>+ {/* Category */}+ <div+ className="grid"+ style={{+ gridTemplateColumns: GRID_COLS,+ borderTop: gi > 0 ? "1px solid var(--hair-2)" : undefined,+ }}+ >+ <div+ className="px-3 pb-2.5 pt-6 text-[12.5px] font-semibold"+ style={{ color: "var(--fg-2)" }}+ >+ {group.category}+ </div>+ {PLAN_COLS.map((_, ci) => (+ <div+ key={ci}+ style={{+ background: ci === HIGHLIGHT_COL ? HILITE : undefined,+ }}+ />+ ))}+ </div>+ {/* Rows */}+ {group.rows.map((row, ri) => {+ const lastRow =+ gi === COMPARISON.length - 1 && ri === group.rows.length - 1;+ return (+ <div+ key={row.label}+ className="grid"+ style={{+ gridTemplateColumns: GRID_COLS,+ borderTop: "1px solid var(--hair)",+ }}+ >+ <div+ className="flex items-center px-3 py-3.5 text-[13.5px]"+ style={{ color: "var(--fg-1)" }}+ >+ {row.label}+ </div>+ {row.values.map((value, ci) => (+ <div+ key={ci}+ className="flex items-center justify-center px-3 py-3.5"+ style={{+ background: ci === HIGHLIGHT_COL ? HILITE : undefined,+ borderBottomLeftRadius:+ ci === HIGHLIGHT_COL && lastRow ? 14 : undefined,+ borderBottomRightRadius:+ ci === HIGHLIGHT_COL && lastRow ? 14 : undefined,+ }}+ >+ <Value value={value} highlight={ci === HIGHLIGHT_COL} />+ </div>+ ))}+ </div>+ );+ })}+ </div>+ ))}+ </div>+ <p+ className="mx-auto mt-6 max-w-3xl px-3 text-center text-[12px]"+ style={{ color: "var(--fg-3)", lineHeight: 1.55 }}+ >+ * Retention applies to exceptions, traces, spans, logs, and session+ replay. Metrics are kept longer at reduced granularity (1-minute+ resolution for 30 days, 1-hour rollups for 1 year), and continuous+ profiling data is retained for 30 days on every plan.+ </p>+ </div>+ );+}diff --git a/website/components/site-header.tsx b/website/components/site-header.tsxindex e394d400..c6084f3f 100644--- a/website/components/site-header.tsx+++ b/website/components/site-header.tsx@@ -56,7 +56,8 @@ const PILLARS: NavItem[] = [},{title: "Exceptions / Stack Traces",- description: "Grouped, normalized, and paired with the replay that caused them.",+ description:+ "Grouped, normalized, and paired with the replay that caused them.",href: "/product/stack-traces",icon: Bug,},@@ -136,7 +137,11 @@ export function SiteHeader() {><div className="wrap flex h-16 items-center justify-between"><div className="flex items-center gap-6">- <Link href="/" className="flex items-center gap-2" aria-label="Traceway home">+ <Link+ href="/"+ className="flex items-center gap-2"+ aria-label="Traceway home"+ ><Imagesrc="/images/logo.png"alt="Traceway"@@ -158,73 +163,123 @@ export function SiteHeader() {className={cn("inline-flex items-center gap-1.5 h-9 px-3 rounded-md text-[14px] font-medium transition-colors","text-[color:var(--fg-1)] hover:text-[color:var(--fg-0)] hover:bg-[color:var(--ink-2)]",- open && "text-[color:var(--fg-0)] bg-[color:var(--ink-2)]"+ open && "text-[color:var(--fg-0)] bg-[color:var(--ink-2)]",)}style={{ fontFamily: "var(--font-display)" }}aria-expanded={open}aria-haspopup="menu">- Product+ Solutions<ChevronDown- className={cn("size-3 transition-transform opacity-60", open && "rotate-180")}+ className={cn(+ "size-3 transition-transform opacity-60",+ open && "rotate-180",+ )}/></button><divclassName={cn(- "absolute top-full left-0 mt-2 pt-0 min-w-[720px] rounded-[12px]",+ "absolute top-full left-0 mt-2 w-[560px] max-w-[calc(100vw-1.5rem)] overflow-hidden rounded-[14px] lg:w-[860px]","transition-all duration-150",- open ? "opacity-100 translate-y-0 pointer-events-auto" : "opacity-0 -translate-y-1 pointer-events-none"+ open+ ? "opacity-100 translate-y-0 pointer-events-auto"+ : "opacity-0 -translate-y-1 pointer-events-none",)}style={{background: "var(--ink-2)",border: "1px solid var(--hair-2)",- boxShadow: "0 16px 40px -24px rgba(0,0,0,0.7)",- padding: 24,+ boxShadow: "0 24px 50px -28px rgba(0,0,0,0.8)",}}role="menu">- <div className="grid grid-cols-2 gap-8">- <div>- <div- className="eyebrow"- style={{ fontSize: 10.5, color: "var(--fg-3)", marginBottom: 14 }}- >- Observability pillars- </div>- <div className="flex flex-col">- {PILLARS.map((p) => (- <MegaLink key={p.href} item={p} onClick={() => setOpen(false)} />- ))}- </div>- </div>- <div>- <div- className="eyebrow"- style={{ fontSize: 10.5, color: "var(--fg-3)", marginBottom: 14 }}- >- Specialized- </div>- <div className="flex flex-col">- {SPECIALIZED.map((p) => (- <MegaLink key={p.href} item={p} onClick={() => setOpen(false)} />- ))}+ <div className="grid grid-cols-2 gap-9 p-6 lg:grid-cols-[1fr_1fr_300px]">+ <NavColumn+ eyebrow="Platform"+ items={PILLARS}+ onNavigate={() => setOpen(false)}+ />+ <NavColumn+ eyebrow="Specialized"+ items={SPECIALIZED}+ onNavigate={() => setOpen(false)}+ />+ <Link+ href="/product/agent-skills"+ onClick={() => setOpen(false)}+ role="menuitem"+ className="group hidden overflow-hidden rounded-xl transition-colors lg:block"+ style={{+ background: "var(--ink-1)",+ border: "1px solid var(--hair)",+ }}+ >+ {/* eslint-disable-next-line @next/next/no-img-element */}+ <img+ src="/images/agent-skills-feature.jpg"+ alt=""+ className="block w-full"+ style={{+ height: 150,+ objectFit: "cover",+ objectPosition: "center top",+ }}+ />+ <div className="p-4">+ <MenuEyebrow>Featured</MenuEyebrow>+ <div+ className="mt-2 text-[15px] font-semibold"+ style={{+ fontFamily: "var(--font-body)",+ color: "var(--fg-0)",+ letterSpacing: "-0.01em",+ }}+ >+ Agent Skills+ </div>+ <p+ className="mt-1 text-[13px] leading-snug"+ style={{+ fontFamily: "var(--font-body)",+ color: "var(--fg-2)",+ }}+ >+ Your coding agent sets up Traceway and debugs production+ for you.+ </p></div>- </div>+ </Link></div><div- className="mt-4 pt-4 flex items-center justify-between"- style={{ borderTop: "1px solid var(--hair)" }}+ className="flex items-center justify-between gap-4 px-6 py-4"+ style={{+ borderTop: "1px solid var(--hair)",+ background: "var(--ink-1)",+ }}>+ <div>+ <MenuEyebrow>Open source</MenuEyebrow>+ <p+ className="mt-1 text-[13px]"+ style={{+ fontFamily: "var(--font-body)",+ color: "var(--fg-1)",+ }}+ >+ MIT-licensed. Self-host in minutes or start free in the+ cloud.+ </p>+ </div><Link- href="https://docs.tracewayapp.com"+ href={GITHUB_URL}target="_blank"rel="noopener noreferrer"- className="text-[11px] tracking-[.08em] uppercase hover:text-[color:var(--a2)] transition-colors"- style={{ fontFamily: "var(--font-mono)", color: "var(--fg-2)" }}+ onClick={() => setOpen(false)}+ className="btn btn-accent btn-sm shrink-0">- Documentation →+ <Github className="h-4 w-4" />+ Star on GitHub</Link></div></div>@@ -296,44 +351,43 @@ export function SiteHeader() {);}-function MegaLink({- item,- onClick,+function MenuEyebrow({ children }: { children: React.ReactNode }) {+ return (+ <div+ className="text-[13.5px] font-medium uppercase tracking-[0.16em]"+ style={{ fontFamily: "var(--font-mono)", color: "var(--fg-3)" }}+ >+ {children}+ </div>+ );+}++function NavColumn({+ eyebrow,+ items,+ onNavigate,}: {- item: NavItem;- onClick?: () => void;+ eyebrow: string;+ items: NavItem[];+ onNavigate?: () => void;}) {- const Icon = item.icon;return (- <Link- href={item.href}- onClick={onClick}- className="group grid grid-cols-[32px_1fr] gap-3 items-start py-2 px-2.5 -mx-2.5 rounded-md transition-colors hover:bg-[color:rgba(255,255,255,0.04)]"- >- <div- className="h-8 w-8 rounded-md grid place-items-center"- style={{- background: "rgba(255,255,255,0.04)",- border: "1px solid var(--hair)",- color: "var(--a2)",- }}- >- <Icon className="h-4 w-4" />- </div>- <div>- <div- className="text-[14px] font-medium leading-tight"- style={{ fontFamily: "var(--font-display)", color: "var(--fg-0)", letterSpacing: "-0.01em" }}- >- {item.title}- </div>- <div- className="text-[12px] mt-0.5 leading-snug"- style={{ color: "var(--fg-3)", fontFamily: "var(--font-mono)" }}- >- {item.description}- </div>+ <div>+ <MenuEyebrow>{eyebrow}</MenuEyebrow>+ <div className="mt-5 flex flex-col">+ {items.map((item) => (+ <Link+ key={item.href}+ href={item.href}+ onClick={onNavigate}+ role="menuitem"+ className="-mx-2 block whitespace-nowrap rounded-md px-2 py-[9px] text-[15px] font-medium transition-colors text-[color:var(--fg-1)] hover:text-[color:var(--fg-0)] hover:bg-[color:rgba(255,255,255,0.04)]"+ style={{ fontFamily: "var(--font-body)", letterSpacing: "-0.01em" }}+ >+ {item.title}+ </Link>+ ))}</div>- </Link>+ </div>);}diff --git a/website/components/video-player.tsx b/website/components/video-player.tsxnew file mode 100644index 00000000..d930f975--- /dev/null+++ b/website/components/video-player.tsx@@ -0,0 +1,353 @@+"use client";++import { useEffect, useRef, useState } from "react";+import { Play, Pause, Volume2, VolumeX, Maximize, Minimize } from "lucide-react";++import { cn } from "@/lib/utils";++type Props = {+ src: string;+ poster?: string;+ className?: string;+};++const STYLES = `+.vp {+ position: relative;+ aspect-ratio: 16 / 9;+ width: 100%;+ border-radius: 12px;+ overflow: hidden;+ background: #05070c;+ border: 1px solid rgba(255, 255, 255, 0.08);+ box-shadow: 0 36px 72px -36px rgba(10, 14, 24, 0.6);+ isolation: isolate;+}+.vp-video {+ position: absolute;+ inset: 0;+ width: 100%;+ height: 100%;+ object-fit: contain;+ display: block;+ background: #05070c;+ cursor: pointer;+}+.vp-bigplay {+ position: absolute;+ top: 50%;+ left: 50%;+ transform: translate(-50%, -50%);+ z-index: 2;+ display: grid;+ place-items: center;+ width: 80px;+ height: 80px;+ border: 0;+ padding: 0;+ border-radius: 9999px;+ cursor: pointer;+ background: linear-gradient(135deg, #7c5cff, #00d4ff);+ box-shadow:+ 0 12px 34px -8px rgba(124, 92, 255, 0.65),+ 0 0 0 10px rgba(255, 255, 255, 0.06);+ opacity: 0;+ pointer-events: none;+ transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);+}+.vp[data-paused="true"] .vp-bigplay {+ opacity: 1;+ pointer-events: auto;+}+.vp-bigplay:hover {+ transform: translate(-50%, -50%) scale(1.07);+}+.vp-bigplay svg {+ width: 32px;+ height: 32px;+ margin-left: 4px;+ color: #fff;+ fill: #fff;+}+.vp-controls {+ position: absolute;+ left: 0;+ right: 0;+ bottom: 0;+ z-index: 3;+ display: flex;+ align-items: center;+ gap: 12px;+ padding: 28px 14px 12px;+ background: linear-gradient(to top, rgba(5, 7, 12, 0.85), transparent);+ opacity: 0;+ transform: translateY(6px);+ transition: opacity 0.2s ease, transform 0.2s ease;+}+.vp:hover .vp-controls,+.vp:focus-within .vp-controls,+.vp[data-paused="true"] .vp-controls {+ opacity: 1;+ transform: translateY(0);+}+.vp-btn {+ display: grid;+ place-items: center;+ width: 32px;+ height: 32px;+ flex: none;+ border: 0;+ padding: 0;+ border-radius: 7px;+ cursor: pointer;+ background: transparent;+ color: #f4f6fb;+ transition: background 0.15s ease, color 0.15s ease;+}+.vp-btn:hover {+ background: rgba(255, 255, 255, 0.12);+}+.vp-btn svg {+ width: 18px;+ height: 18px;+}+.vp-progress {+ position: relative;+ flex: 1 1 auto;+ height: 16px;+ display: flex;+ align-items: center;+ cursor: pointer;+ touch-action: none;+}+.vp-progress-track {+ position: relative;+ width: 100%;+ height: 4px;+ border-radius: 9999px;+ background: rgba(255, 255, 255, 0.22);+ overflow: hidden;+ transition: height 0.15s ease;+}+.vp-progress:hover .vp-progress-track {+ height: 6px;+}+.vp-progress-fill {+ position: absolute;+ inset: 0 auto 0 0;+ height: 100%;+ border-radius: 9999px;+ background: linear-gradient(90deg, #7c5cff, #00d4ff);+}+.vp-progress-thumb {+ position: absolute;+ top: 50%;+ width: 12px;+ height: 12px;+ border-radius: 9999px;+ background: #fff;+ box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);+ transform: translate(-50%, -50%) scale(0);+ transition: transform 0.15s ease;+ pointer-events: none;+}+.vp-progress:hover .vp-progress-thumb {+ transform: translate(-50%, -50%) scale(1);+}+.vp-time {+ flex: none;+ font-family: var(--font-mono, ui-monospace, monospace);+ font-size: 12px;+ font-variant-numeric: tabular-nums;+ color: #c9d0dd;+ letter-spacing: 0.02em;+}+`;++function fmt(seconds: number) {+ if (!Number.isFinite(seconds) || seconds < 0) seconds = 0;+ const m = Math.floor(seconds / 60);+ const s = Math.floor(seconds % 60);+ return `${m}:${s.toString().padStart(2, "0")}`;+}++export function VideoPlayer({ src, poster, className }: Props) {+ const videoRef = useRef<HTMLVideoElement>(null);+ const containerRef = useRef<HTMLDivElement>(null);+ const userPausedRef = useRef(false);++ const [paused, setPaused] = useState(true);+ const [muted, setMuted] = useState(true);+ const [current, setCurrent] = useState(0);+ const [duration, setDuration] = useState(0);+ const [fullscreen, setFullscreen] = useState(false);++ useEffect(() => {+ const video = videoRef.current;+ if (!video) return;+ video.muted = true;++ const onTime = () => setCurrent(video.currentTime);+ const onMeta = () => setDuration(video.duration);+ const onPlay = () => setPaused(false);+ const onPause = () => setPaused(true);+ const onVolume = () => setMuted(video.muted);+ if (video.readyState >= 1 && Number.isFinite(video.duration)) setDuration(video.duration);+ video.addEventListener("timeupdate", onTime);+ video.addEventListener("loadedmetadata", onMeta);+ video.addEventListener("durationchange", onMeta);+ video.addEventListener("play", onPlay);+ video.addEventListener("pause", onPause);+ video.addEventListener("volumechange", onVolume);++ const io = new IntersectionObserver(+ ([entry]) => {+ if (entry.isIntersecting && entry.intersectionRatio >= 0.4) {+ if (!userPausedRef.current) video.play().catch(() => {});+ } else if (!video.paused) {+ video.pause();+ }+ },+ { threshold: [0, 0.4, 1] }+ );+ if (containerRef.current) io.observe(containerRef.current);++ const onFs = () => setFullscreen(document.fullscreenElement === containerRef.current);+ document.addEventListener("fullscreenchange", onFs);++ return () => {+ video.removeEventListener("timeupdate", onTime);+ video.removeEventListener("loadedmetadata", onMeta);+ video.removeEventListener("durationchange", onMeta);+ video.removeEventListener("play", onPlay);+ video.removeEventListener("pause", onPause);+ video.removeEventListener("volumechange", onVolume);+ document.removeEventListener("fullscreenchange", onFs);+ io.disconnect();+ };+ }, []);++ function togglePlay() {+ const video = videoRef.current;+ if (!video) return;+ if (video.paused) {+ userPausedRef.current = false;+ video.play().catch(() => {});+ } else {+ userPausedRef.current = true;+ video.pause();+ }+ }++ function toggleMute() {+ const video = videoRef.current;+ if (!video) return;+ video.muted = !video.muted;+ }++ function seekFromPointer(e: React.PointerEvent<HTMLDivElement>) {+ const video = videoRef.current;+ if (!video || !duration) return;+ const rect = e.currentTarget.getBoundingClientRect();+ const ratio = Math.min(1, Math.max(0, (e.clientX - rect.left) / rect.width));+ video.currentTime = ratio * duration;+ setCurrent(video.currentTime);+ }++ function onProgressDown(e: React.PointerEvent<HTMLDivElement>) {+ e.currentTarget.setPointerCapture(e.pointerId);+ seekFromPointer(e);+ }++ function onProgressMove(e: React.PointerEvent<HTMLDivElement>) {+ if (e.currentTarget.hasPointerCapture(e.pointerId)) seekFromPointer(e);+ }++ function toggleFullscreen() {+ const el = containerRef.current;+ if (!el) return;+ if (document.fullscreenElement === el) {+ document.exitFullscreen().catch(() => {});+ } else {+ el.requestFullscreen().catch(() => {});+ }+ }++ const pct = duration ? (current / duration) * 100 : 0;++ return (+ <div ref={containerRef} className={cn("vp", className)} data-paused={paused}>+ <style>{STYLES}</style>+ <video+ ref={videoRef}+ className="vp-video"+ src={src}+ poster={poster}+ muted+ loop+ playsInline+ preload="metadata"+ onClick={togglePlay}+ />++ <button+ type="button"+ className="vp-bigplay"+ onClick={togglePlay}+ aria-label="Play"+ >+ <Play />+ </button>++ <div className="vp-controls">+ <button+ type="button"+ className="vp-btn"+ onClick={togglePlay}+ aria-label={paused ? "Play" : "Pause"}+ >+ {paused ? <Play /> : <Pause />}+ </button>++ <div+ className="vp-progress"+ onPointerDown={onProgressDown}+ onPointerMove={onProgressMove}+ role="slider"+ aria-label="Seek"+ aria-valuemin={0}+ aria-valuemax={Math.round(duration)}+ aria-valuenow={Math.round(current)}+ tabIndex={0}+ >+ <div className="vp-progress-track">+ <div className="vp-progress-fill" style={{ width: `${pct}%` }} />+ </div>+ <div className="vp-progress-thumb" style={{ left: `${pct}%` }} />+ </div>++ <span className="vp-time">+ {fmt(current)} / {fmt(duration)}+ </span>++ <button+ type="button"+ className="vp-btn"+ onClick={toggleMute}+ aria-label={muted ? "Unmute" : "Mute"}+ >+ {muted ? <VolumeX /> : <Volume2 />}+ </button>++ <button+ type="button"+ className="vp-btn"+ onClick={toggleFullscreen}+ aria-label={fullscreen ? "Exit fullscreen" : "Fullscreen"}+ >+ {fullscreen ? <Minimize /> : <Maximize />}+ </button>+ </div>+ </div>+ );+}diff --git a/website/public/images/agent-skills-feature.jpg b/website/public/images/agent-skills-feature.jpgnew file mode 100644index 00000000..d67f5b0aBinary files /dev/null and b/website/public/images/agent-skills-feature.jpg differdiff --git a/website/public/videos/agent-skills-demo.jpg b/website/public/videos/agent-skills-demo.jpgnew file mode 100644index 00000000..38476e4dBinary files /dev/null and b/website/public/videos/agent-skills-demo.jpg differdiff --git a/website/public/videos/agent-skills-demo.mp4 b/website/public/videos/agent-skills-demo.mp4new file mode 100644index 00000000..43b347beBinary files /dev/null and b/website/public/videos/agent-skills-demo.mp4 differ