Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python Starlette: new option middleware_spans #9934

Open
wants to merge 56 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
4704708
Python Starlette: new option middleware_spans
antonpirker May 7, 2024
259f79a
Added description for transaction_style for consistency
vivianyentran May 7, 2024
00d7bd9
[DRAFT] UI redesign (#9428)
a-hariti May 7, 2024
cdbf840
fix page overlow on api page (#9935)
a-hariti May 7, 2024
90607f9
Update webhook docs for issues (#9930)
sentaur-athena May 7, 2024
5100874
fix: Changelog Images (#9936)
HazAT May 7, 2024
9439b9f
Update best practices meta description (#9946)
vivianyentran May 7, 2024
e4cd8b4
fix banner margin (#9944)
a-hariti May 7, 2024
cbd6cc6
Tags are bind to the isolation scope (#9939)
antonpirker May 8, 2024
49c2752
remove forwarding (#9940)
bitsandfoxes May 8, 2024
3733be6
custom favicon on localhost (#9839)
a-hariti May 8, 2024
35f7ab9
kmp: update versions for 0.6.0 release (#9933)
buenaflor May 8, 2024
4fa9537
fix icons for various platform and integrations (#9953)
a-hariti May 8, 2024
cb0c11b
fix: narrow down integrations properly on platformSelector (#9954)
a-hariti May 8, 2024
888714e
feat: one click 404 report (#9937)
a-hariti May 8, 2024
846b4f1
feat: `docs/**` content hot reload (#9842)
a-hariti May 8, 2024
a905286
feat: Format code blocks at build time (#9373)
a-hariti May 8, 2024
1dbee0f
fix copyright year (#9959)
a-hariti May 8, 2024
355b987
update using framework alert (#9947)
lizokm May 8, 2024
589209e
fix account to org links (#9948)
vivianyentran May 8, 2024
4fe47ad
Document how to add JS profiling headers in Next.js (#9958)
lforst May 8, 2024
9545330
less jarring banner appearance (#9956)
a-hariti May 8, 2024
835623e
Bump API schema to a663c1c4 (#9965)
getsentry-release May 8, 2024
432dc56
Bump API schema to 684b2cd9 (#9968)
getsentry-release May 8, 2024
a386663
Add fill_extra_context option to the symfony documentation (#9824)
alexander-schranz May 9, 2024
bf544dd
fix codeBlock overflow on short lines (#9973)
a-hariti May 9, 2024
99e31ac
feat(perf): Add documentation for time-consuming domains widget (#9964)
gggritso May 9, 2024
3277861
fix permissive regex (#9966)
mdtro May 9, 2024
47c6c2a
feat(feedback): Add UF screenshot capability (#9867)
c298lee May 9, 2024
624d05a
feat: Cmd+k/esc keyboard interaction on Search (#9977)
a-hariti May 9, 2024
61b8e29
fix (#9978)
DominikB2014 May 9, 2024
2ecc9a4
fix Integrations redirects (#9974)
a-hariti May 9, 2024
3dfba33
feat(perf): Requests module SDK instrumentation documentation (#9963)
gggritso May 9, 2024
8292b19
Bump API schema to 0d1f96b7 (#9984)
getsentry-release May 9, 2024
a9e2663
Include note about bundler plugin upgrade when bumping to v8 (#9988)
lforst May 10, 2024
5461c93
Update deprecated option names and reflect that attachStacktrace is o…
Fwang36 May 10, 2024
887395f
feat(replay): Document how to connect Replay with support software (#…
billyvg May 10, 2024
a8d24a5
Bump API schema to 2313b26f (#9993)
getsentry-release May 10, 2024
a6d04cf
Bump API schema to a857a9ce (#9994)
getsentry-release May 10, 2024
b73a4eb
spelling correction (#9991)
liamjones May 10, 2024
477dc23
doc(feedback): remove beta banners and 'associated error event' menti…
aliu39 May 10, 2024
92b0af8
Bump API schema to 3c5bcbf2 (#9996)
getsentry-release May 10, 2024
adc2f92
chore: Clarification around size limits and stats (#9911)
kahest May 11, 2024
a2e9026
Image to explain cardinality (#9998)
ale-cota May 12, 2024
36d82c0
fix: Button style (#10001)
HazAT May 13, 2024
2652a99
Metrics examples with collapsable list (#10000)
ale-cota May 13, 2024
083ddba
Update description for Investigation Mode (#9756)
ale-cota May 13, 2024
4993f60
Bump API schema to dfae6277 (#10003)
getsentry-release May 13, 2024
148a1f5
chore(apple): Update Troubleshooting page to include `invalid version…
brustolin May 13, 2024
645c021
feat(v8): Update node docs for v8 (#9906)
mydea May 13, 2024
b891123
update sdk to 8.0.0 (#10004)
c298lee May 13, 2024
d93dfd0
Bump API schema to 4d976590 (#10005)
getsentry-release May 13, 2024
28b1bf0
fix(js): Fix dead link (#10012)
mydea May 14, 2024
350d32b
Add import from NPM back (#10014)
smeubank May 14, 2024
3c2bc3d
feat(nextjs): Update Next.js docs for v8 (#9910)
lforst May 14, 2024
f95b2c0
[Python] Manual instrumentation for Cache Module (#9926)
antonpirker May 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
28 changes: 28 additions & 0 deletions .github/ISSUE_TEMPLATE/issue-platform-404.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: "💻 Docs Platform: 🔗 404 Error"
labels: "Type: Platform,404"
description: Broken links, missing pages, and other 404 errors.

body:
- type: textarea
id: url
attributes:
label: URL
description: The broken link or missing page.
placeholder: |-
https://docs.sentry.io/your-broken-link
validations:
required: true
- type: textarea
id: notes
attributes:
label: Additional Info
description: Where did you find the link? Anything else we should know?
validations:
required: false
- type: markdown
attributes:
value: |-
## Thanks 🙏
Check our [triage docs](https://open.sentry.io/triage/) for what to expect next.
validations:
required: false
9 changes: 7 additions & 2 deletions app/[[...path]]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,17 @@ import 'prism-sentry/index.css';

import type {Metadata} from 'next';

import 'sentry-docs/styles/screen.scss';
import {HotReload} from 'sentry-docs/components/hotReload';

export const metadata: Metadata = {
title: {template: '%s | Sentry Documentation', default: 'Home'},
};

export default function DocsLayout({children}: {children: React.ReactNode}) {
return <div>{children}</div>;
return (
<div>
{children}
<HotReload />
</div>
);
}
5 changes: 4 additions & 1 deletion app/[[...path]]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export default async function Page({params}) {
const docs = await getDocsFrontMatter();
const rootNode = await getDocsRootNode();
if (!rootNode) {
// eslint-disable-next-line no-console
console.warn('no root node');
return notFound();
}
Expand All @@ -78,6 +79,7 @@ export default async function Page({params}) {

const pageNode = nodeForPath(rootNode, params.path);
if (!pageNode) {
// eslint-disable-next-line no-console
console.warn('no page node', params.path);
return notFound();
}
Expand All @@ -88,6 +90,7 @@ export default async function Page({params}) {
doc = await getFileBySlug(`docs/${pageNode.path}`);
} catch (e) {
if (e.code === 'ENOENT') {
// eslint-disable-next-line no-console
console.error('ENOENT', pageNode.path);
return notFound();
}
Expand Down Expand Up @@ -121,7 +124,7 @@ export async function generateMetadata({params}: MetadataProps): Promise<Metadat

const rootNode = await getDocsRootNode();

if (rootNode && params.path) {
if (params.path) {
const pageNode = nodeForPath(rootNode, params.path);
if (pageNode) {
const guideOrPlatform = getCurrentPlatformOrGuide(rootNode, params.path);
Expand Down
3 changes: 2 additions & 1 deletion app/api/auth/[...nextauth]/route.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import {PrismaAdapter} from '@auth/prisma-adapter';
import NextAuth from 'next-auth';
import {Adapter} from 'next-auth/adapters';
import GoogleProvider from 'next-auth/providers/google';

import prisma from 'sentry-docs/prisma';

const handler = NextAuth({
adapter: PrismaAdapter(prisma),
adapter: PrismaAdapter(prisma) as Adapter,
providers: [
GoogleProvider({
clientId: process.env.GOOGLE_CLIENT_ID || '',
Expand Down
163 changes: 0 additions & 163 deletions app/changelog/globals.css
Original file line number Diff line number Diff line change
@@ -1,164 +1 @@
@import '@radix-ui/themes/styles.css';

@tailwind base;
@tailwind components;
@tailwind utilities;

#changelogcontent {
font-family: var(--font-rubik);
}
.radix-themes {
--cursor-button: pointer;
}
.fancy-border {
transition-property: box-shadow, border-color;
transition-duration: 0.25s;
transition-timing-function: ease-out;

&:hover {
box-shadow:
0 2px 0 rgba(54, 45, 89, 0.15),
-0.1875rem -0.1875rem 0 0.1875rem #f2b712,
0 0 0 0.375rem #e1567c;
text-decoration: none;
cursor: pointer;
}
}

.hero-top-left-down-slope {
clip-path: polygon(0 0, 100% 0, 100% 100%, 0 40%);
}

.hero-bottom-left-down-slope {
clip-path: polygon(0 0, 100% 100%, 100% 100%, 0 100%);
}

.footer-top-right-down-slope {
clip-path: polygon(0 0, 100% 0, 100% 40%, 0 100%);
}

.icon {
margin-left: 0.25em;

svg {
display: inline;
width: 14px;
height: 14px;
}
}

.btn {
align-items: center;
border: 0.125rem solid transparent;
border-radius: 0.5rem;
box-sizing: border-box;
cursor: pointer;
display: inline-flex;
gap: 0.25rem;
height: 2.5rem;
justify-content: center;
line-height: 1rem;
outline: 0;
padding: 0.75rem 1rem;
position: relative;
text-align: center;
text-rendering: optimizeLegibility;
text-transform: uppercase;
user-select: none;
vertical-align: middle;
white-space: nowrap;
text-decoration: none;

@apply text-primary;
}

.solid-btn {
background: linear-gradient(
120deg,
#c83852,
#b44092 25%,
#6a5fc1 50%,
#452650 55%,
#452650
);
background-position: 98% 0;
background-size: 250% 100%;
border-color: transparent;
border-radius: 0.5rem;
box-shadow: none;
outline: 0 solid #6a5fc1;
outline-offset: 0.125rem;
transition:
background-position 0.2s,
outline-width 0.2s;
}

.solid-btn:hover {
background-position: 2% 0;
}

.solid-btn:focus {
background: #6a5fc1;
outline-width: 0.125rem;
}

.outline-btn {
background: linear-gradient(
120deg,
#fa7faa,
#ff9691 25%,
#ffb287 50%,
transparent 55%,
transparent
);
background-clip: padding-box;
background-position: 98% 0;
background-size: 250% 100%;
border: none;
box-shadow: none;
box-sizing: border-box;
-webkit-box-sizing: border-box;
outline: 0 solid #fa7faa;
outline-offset: 0.125rem;
position: relative;
transition:
background-position 0.2s,
outline-width 0.2s;
z-index: 0;
}

.outline-btn:before {
background: linear-gradient(11deg, #c83852, #b44092 50%, #6a5fc1);
border-radius: 0.5rem;
content: '';
inset: 0;
-webkit-mask:
linear-gradient(#fff 0 0) content-box,
linear-gradient(#fff 0 0);
mask:
linear-gradient(#fff 0 0) content-box,
linear-gradient(#fff 0 0);
-webkit-mask-composite: xor;
mask-composite: exclude;
padding: 0.125rem;
position: absolute;
transition: opacity 0.2s;
z-index: -1;
}

.outline-btn:hover {
background-position: 2% 0;
}

.outline-btn:hover:before {
opacity: 0;
}

.outline-btn:focus {
background: #ffa269;
outline-width: 0.125rem;
}

.try-sentry-footer-wrapper {
background: url('/changelog/assets/squiggle.png') 0px 0px / 300px 300px, linear-gradient(315deg, rgb(24, 13, 28) 0.57%, rgb(69, 38, 80) 100%) 0% 0% / cover;;
}
2 changes: 2 additions & 0 deletions app/changelog/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ export default function Header({loading}) {
return (
<div className="w-full mx-auto h-96 relative bg-darkPurple">
<div className="relative w-full lg:max-w-7xl mx-auto px-4 lg:px-8 pt-8 grid grid-cols-12 items-center">
{/* this needs to be a plain <img> next/image doesn't work here because of redirects we do */}
{/* eslint-disable-next-line @next/next/no-img-element */}
<img
className={`justify-self-center col-span-10 hidden lg:block ${loading ? 'animate-fade-in-left' : ''}`}
src="https://docs.sentry.io/changelog/assets/hero.png"
Expand Down
18 changes: 4 additions & 14 deletions app/changelog/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,11 @@
import './globals.css';
import 'prism-sentry/index.css';

import {ReactNode} from 'react';
import {Theme} from '@radix-ui/themes';
import {Fragment, ReactNode} from 'react';
import type {Metadata} from 'next';
import {Rubik} from 'next/font/google';
import NextTopLoader from 'nextjs-toploader';

import {Navbar} from 'sentry-docs/components/changelog/navbar';

const rubik = Rubik({
weight: ['400', '500', '700'],
style: ['normal', 'italic'],
subsets: ['latin'],
variable: '--font-rubik',
});

export const metadata: Metadata = {
title: {template: '%s | Sentry Changelog', default: 'Changelog'},
metadataBase: new URL('https://sentry.io/changelog/'),
Expand All @@ -26,15 +16,15 @@ export const metadata: Metadata = {

export default function ChangelogLayout({children}: {children: ReactNode}) {
return (
<Theme accentColor="violet" grayColor="sand" radius="large" scaling="95%">
<Fragment>
<NextTopLoader color="#8d5494" />
<div id="changelogcontent" className={`${rubik.variable}`}>
<div id="changelogcontent" className="tw-app">
<Navbar />
<div className="bg-gray-100">{children}</div>
<div className="w-full mx-auto h-16 relative bg-darkPurple">
<div className="footer-top-right-down-slope absolute w-full -top-1 h-10 bg-gray-200" />
</div>
</div>
</Theme>
</Fragment>
);
}
2 changes: 0 additions & 2 deletions app/global-error.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import {useEffect} from 'react';
import * as Sentry from '@sentry/nextjs';
import Error from 'next/error';

import 'sentry-docs/styles/screen.scss';

export default function GlobalError({error}) {
useEffect(() => {
Sentry.captureException(error);
Expand Down