Skip to content

Commit

Permalink
Merge branch 'master' into rz/feat/session-replay-perf-overehead
Browse files Browse the repository at this point in the history
  • Loading branch information
romtsn committed Nov 28, 2024
2 parents 4059ca2 + 14f6fbb commit 3a53bf0
Show file tree
Hide file tree
Showing 662 changed files with 11,256 additions and 8,232 deletions.
4 changes: 2 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# warning: variables prefixed with NEXT_PUBLIC_ will be made available to client-side code
# be careful not to expose sensitive data (in this case your Algolia admin key)

NEXT_PUBLIC_ALGOLIA_APP_ID=OOK48W9UCL
NEXT_PUBLIC_ALGOLIA_SEARCH_KEY=ca98597f559459c216891b75989832f8
NEXT_PUBLIC_ALGOLIA_APP_ID=
NEXT_PUBLIC_ALGOLIA_SEARCH_KEY=
3 changes: 0 additions & 3 deletions .env.production

This file was deleted.

5 changes: 0 additions & 5 deletions .env.test

This file was deleted.

14 changes: 0 additions & 14 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,10 @@
/* eslint-env node */
/* eslint import/no-nodejs-modules:0 */

module.exports = {
extends: ['sentry-docs', 'plugin:@next/next/recommended'],
globals: {
jest: true,
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
rules: {
'import/no-nodejs-modules': 'off',
},
overrides: [
{
files: ['*.ts', '*.tsx'],
rules: {
// Reach is vendored into gatsby. They have their own webpack
// resolution for it which this eslint plugin can't seem to detect
'import/no-unresolved': ['error', {ignore: ['@reach']}],
},
},
],
};
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
# /src/docs/product/discover-queries/ @getsentry/visibility
# /src/docs/product/performance/ @getsentry/visibility

# /src/docs/product/cli/dif/ @getsentry/owners-native
# /src/docs/cli/dif.mdx @getsentry/owners-native

# /.github/labels.yml @getsentry/open-source
# /.github/workflows/react-to-product-owners-yml-changes.yml @getsentry/open-source
Expand Down
51 changes: 49 additions & 2 deletions .github/labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@
color: F6F6F8
description: Pull requests that update a dependency file

# Issue types
- name: 'Type: Content'
color: FBCA04
- name: 'Type: Platform'
color: 1D76DB

#
- name: 'Develop'
color: F6F6F8

# Impacts
- name: 'Impact: Large'
color: C83852
Expand All @@ -32,6 +42,8 @@
color: '584774'
- name: 'Platform: Capacitor'
color: '584774'
- name: 'Platform: CLI'
color: '584774'
- name: 'Platform: Cocoa'
color: '584774'
- name: 'Platform: Cordova'
Expand All @@ -40,14 +52,20 @@
color: '584774'
- name: 'Platform: Elixir'
color: '584774'
- name: 'Platform: Flutter'
color: '584774'
- name: 'Platform: Go'
color: '584774'
- name: 'Platform: iOS'
color: '584774'
- name: 'Platform: Java'
color: '584774'
- name: 'Platform: JavaScript'
color: '584774'
- name: 'Platform: KMP'
color: '584774'
- name: 'Platform: Native'
color: '584774'
- name: 'Platform: PHP'
color: '584774'
- name: 'Platform: Python'
Expand All @@ -67,6 +85,7 @@
- name: 'Platform: Xamarin'
color: '584774'


# Waiting for Labels
- name: 'Waiting for: Support'
color: '8D5494'
Expand All @@ -80,7 +99,7 @@
# Product Areas - www.notion.so/sentry/473791bae5bf43399d46093050b77bf0
- name: 'Product Area: Unknown'
color: '8D5494'
- name: 'Product Area: Go to Sentry'
- name: 'Product Area: Sign In'
color: '8D5494'
- name: 'Product Area: Issues'
color: '8D5494'
Expand Down Expand Up @@ -217,16 +236,36 @@
- name: 'Team: Web Frontend'
color: 8D5494
description: team-web-sdk-frontend
- name: 'Team: Web Frontend SDKs'
color: 8D5494
description: team-web-sdk-frontend
- name: 'Team: Web SDK Backend'
color: 8D5494
description: team-web-sdk-backend
- name: 'Team: Web Backend SDKs'
color: 8D5494
description: team-web-sdk-backend
- name: 'Team: Workflow'
color: 8D5494
- name: 'All SDKs'
color: 1D76DB
- name: 'SDKs'
color: 1D76DB
- name: 'Develop'
color: 8D5494
- name: 'Do not merge'
color: 8D5494
- name: 'Improvement'
color: 8D5494
- name: 'Launch 🚀'
color: 8D5494
- name: 'Product'
color: 8D5494

# Miscellaneous
- name: API Docs
color: 649B42
- name: bug
- name: Bug
color: F6F6F8
- name: Common content
color: B0E299
Expand Down Expand Up @@ -279,3 +318,11 @@
color: F6F6F8
- name: release health
color: F6F6F8
- name: submodules
color: F6F6F8
- name: '404'
color: F6F6F8
- name: darkmode
color: F6F6F8
- name: github_actions
color: F6F6F8
2 changes: 1 addition & 1 deletion .github/workflows/algolia-index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- 'develop-docs/**'
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
bun-version: '1.1.34'

- uses: actions/cache@v4
id: cache
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ repos:
- id: detect-private-key
exclude: |
(?x)^(
develop-docs/application/config.mdx|
develop-docs/application-architecture/config.mdx|
develop-docs/integrations/github.mdx|
develop-docs/self-hosted/sso.mdx
)$
Expand Down
10 changes: 6 additions & 4 deletions app/[[...path]]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ function MDXLayoutRenderer({mdxSource, ...rest}) {
return <MDXLayout components={mdxComponentsWithWrapper} {...rest} />;
}

export default async function Page({params}: {params: {path?: string[]}}) {
export default async function Page(props: {params: Promise<{path?: string[]}>}) {
const params = await props.params;
// get frontmatter of all docs in tree
const rootNode = await getDocsRootNode();

Expand Down Expand Up @@ -172,9 +173,9 @@ export default async function Page({params}: {params: {path?: string[]}}) {
}

type MetadataProps = {
params: {
params: Promise<{
path?: string[];
};
}>;
};

// Helper function to clean up canonical tags missing leading or trailing slash
Expand All @@ -188,7 +189,8 @@ function formatCanonicalTag(tag: string) {
return tag;
}

export async function generateMetadata({params}: MetadataProps): Promise<Metadata> {
export async function generateMetadata(props: MetadataProps): Promise<Metadata> {
const params = await props.params;
const domain = isDeveloperDocs
? 'https://develop.sentry.dev'
: 'https://docs.sentry.io';
Expand Down
1 change: 1 addition & 0 deletions app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
--accent: var(--accent-purple);
--foreground: var(--gray-12);
--cursor-checkbox: pointer;
--default-font-family: var(--font-rubik) !important;
::selection {
background-color: var(--accent-a7);
}
Expand Down
4 changes: 2 additions & 2 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ export const metadata: Metadata = {

export default function RootLayout({children}: {children: React.ReactNode}) {
return (
<html lang="en">
<body className={`${rubik.variable}`}>
<html lang="en" suppressHydrationWarning>
<body className={rubik.variable} suppressHydrationWarning>
<ThemeProvider
attribute="class"
defaultTheme="system"
Expand Down
19 changes: 15 additions & 4 deletions app/platform-redirect/page.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import {Metadata} from 'next';
import {redirect} from 'next/navigation';

import {Alert} from 'sentry-docs/components/alert';
Expand All @@ -7,11 +8,21 @@ import {SmartLink} from 'sentry-docs/components/smartLink';
import {extractPlatforms, getDocsRootNode, nodeForPath} from 'sentry-docs/docTree';
import {setServerContext} from 'sentry-docs/serverContext';

export default async function Page({
searchParams: {next = '', platform},
}: {
searchParams: {[key: string]: string | string[] | undefined};
export const metadata: Metadata = {
robots: 'noindex',
title: 'Platform Specific Content',
description:
'The page you are looking for is customized for each platform. Select your platform below and we’ll direct you to the most specific documentation on it.',
};

export default async function Page(props: {
searchParams: Promise<{[key: string]: string | string[] | undefined}>;
}) {
const searchParams = await props.searchParams;

let next = searchParams.next || '';
const platform = searchParams.platform;

if (Array.isArray(next)) {
next = next[0];
}
Expand Down
17 changes: 10 additions & 7 deletions apps/changelog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,26 @@
"lint": "next lint",
"migrate:dev": "dotenv -e .env.development -- yarn prisma migrate reset"
},
"prisma": {
"seed": "node prisma/seed/seed.mjs"
},
"dependencies": {
"@auth/prisma-adapter": "^1.2.0",
"@google-cloud/storage": "^7.7.0",
"@prisma/client": "^5.8.1",
"@radix-ui/react-icons": "^1.3.0",
"@radix-ui/react-toolbar": "^1.0.4",
"@radix-ui/themes": "^2.0.3",
"@radix-ui/react-icons": "^1.3.2",
"@radix-ui/react-toolbar": "^1.1.0",
"@radix-ui/themes": "^3.1.3",
"@sentry/nextjs": "8.36.0",
"@spotlightjs/spotlight": "^2.1.1",
"next": "15.0.0-rc.1",
"next": "15.0.3",
"next-auth": "^4.24.5",
"next-mdx-remote": "^4.4.1",
"nextjs-toploader": "^1.6.6",
"nuqs": "^1.17.7",
"prism-sentry": "^1.0.2",
"react": "19.0.0-rc-cd22717c-20241013",
"react-dom": "19.0.0-rc-cd22717c-20241013",
"react": "rc",
"react-dom": "rc",
"react-select": "^5.7.3",
"react-textarea-autosize": "^8.5.3",
"rehype-prism-plus": "^1.6.3",
Expand Down Expand Up @@ -63,4 +66,4 @@
"@types/react": "npm:types-react@19.0.0-rc.1",
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.1"
}
}
}
1 change: 1 addition & 0 deletions apps/changelog/prisma/seed/seed.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ async function seed() {
console.log('Seed data created successfully!');
} catch (error) {
console.error('Error seeding data:', error);
process.exit(1);
} finally {
await prisma.$disconnect();
}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: API Development
sidebar_order: 1
sidebar_order: 20
---

As a developer-facing company it's critical for us to have simple, intuitive, and consistent APIs that our users can call from their dev environment to accomplish key tasks without going to the UI. If you're creating or editing an endpoint, this doc will help you achieve Sentry standards.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,30 @@ NOTE: The `openapi-diff` test is supposed to fail when CI runs on your pull requ

---

**Problem**: `drf_spectacular.plumbing.UnableToProceedError' <class 'serializer_path.FooSerializer'> ... raise UnableToProceedError(hint)`

**Solution**: Check that the response of your API documentation is using a TypedDict rather than a serializer.

If the schema looks something like this:
```python
...
200: inline_sentry_response_serializer(
"ListDocIntegrationResponse", list[FooSerializer]
),
```

Then you need to change it to use a TypedDict by first typing the serializer, then updating the schema to use the TypedDict:
```python
...
200: inline_sentry_response_serializer(
"ListDocIntegrationResponse", list[FooSerializerResponse]
),
```

Refer to the section above on [Success Responses](#success-responses) for more information.

---

## Requesting an API to be public

Are you a Sentry user who wants an endpoint to be public?
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: A/B Tests with Amplitude
sidebar_order: 190
sidebar_order: 50
---

## Why AB testing?
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Asynchronous Workers
sidebar_order: 100
sidebar_order: 70
---

Sentry comes with a built-in queue to process tasks in a more asynchronous fashion. For example when an event comes in instead of writing it to the database immediately, it sends a job to the queue so that the request can be returned right away, and the background workers handle actually saving that data.
Expand Down Expand Up @@ -78,7 +78,7 @@ There are a few important points:

## Running a Worker

Workers can be run by using the [Sentry CLI](https://docs.sentry.io/product/cli/).
Workers can be run by using the [Sentry CLI](https://docs.sentry.io/cli/).

```bash
$ sentry run worker
Expand Down
Loading

0 comments on commit 3a53bf0

Please sign in to comment.