Skip to content

Commit c9b7771

Browse files
authored
Merge branch 'python_pymongo' into antonpirker/pymongo
2 parents dbf4d49 + a81e709 commit c9b7771

File tree

361 files changed

+3795
-1683
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

361 files changed

+3795
-1683
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL"
13+
14+
on:
15+
schedule:
16+
- cron: '39 14 * * 0'
17+
18+
jobs:
19+
analyze:
20+
name: Analyze
21+
runs-on: ubuntu-latest
22+
permissions:
23+
actions: read
24+
contents: read
25+
security-events: write
26+
27+
strategy:
28+
fail-fast: false
29+
matrix:
30+
language: [ 'javascript' ]
31+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
32+
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
33+
34+
steps:
35+
- name: Checkout repository
36+
uses: actions/checkout@v3
37+
38+
# Initializes the CodeQL tools for scanning.
39+
- name: Initialize CodeQL
40+
uses: github/codeql-action/init@v2
41+
with:
42+
languages: ${{ matrix.language }}
43+
# If you wish to specify custom queries, you can do so here or in a config file.
44+
# By default, queries listed here will override any specified in a config file.
45+
# Prefix the list here with "+" to use these queries and those in the config file.
46+
47+
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
48+
# queries: security-extended,security-and-quality
49+
50+
51+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
52+
# If this step fails, then you should remove it and run the build manually (see below)
53+
- name: Autobuild
54+
uses: github/codeql-action/autobuild@v2
55+
56+
# ℹ️ Command-line programs to run using the OS shell.
57+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
58+
59+
# If the Autobuild fails above, remove it and uncomment the following three lines.
60+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
61+
62+
# - run: |
63+
# echo "Run, Build Application using script"
64+
# ./location_of_script_within_repo/buildscript.sh
65+
66+
- name: Perform CodeQL Analysis
67+
uses: github/codeql-action/analyze@v2
68+
with:
69+
category: "/language:${{matrix.language}}"

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
JEKYLL_ENABLE_PLATFORM_API: false
1515
steps:
1616
- uses: actions/checkout@v2
17-
- uses: volta-cli/action@v1
17+
- uses: getsentry/action-setup-volta@d6f6ebfc4046feb3cfb6049e885185a01afd82b7 # v1.0.0
1818
- uses: actions/cache@v2
1919
id: cache
2020
with:
@@ -39,7 +39,7 @@ jobs:
3939
runs-on: ubuntu-latest
4040
steps:
4141
- uses: actions/checkout@v2
42-
- uses: volta-cli/action@v1
42+
- uses: getsentry/action-setup-volta@d6f6ebfc4046feb3cfb6049e885185a01afd82b7 # v1.0.0
4343
- uses: actions/cache@v2
4444
id: cache
4545
with:
@@ -55,7 +55,7 @@ jobs:
5555
runs-on: ubuntu-latest
5656
steps:
5757
- uses: actions/checkout@v2
58-
- uses: volta-cli/action@v1
58+
- uses: getsentry/action-setup-volta@d6f6ebfc4046feb3cfb6049e885185a01afd82b7 # v1.0.0
5959
- uses: actions/cache@v2
6060
id: cache
6161
with:
@@ -71,7 +71,7 @@ jobs:
7171
runs-on: ubuntu-latest
7272
steps:
7373
- uses: actions/checkout@v2
74-
- uses: volta-cli/action@v1
74+
- uses: getsentry/action-setup-volta@d6f6ebfc4046feb3cfb6049e885185a01afd82b7 # v1.0.0
7575
- uses: actions/cache@v2
7676
id: cache
7777
with:

.vscode/extensions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"recommendations": [
33
"esbenp.prettier-vscode",
44
"dbaeumer.vscode-eslint",
5-
"silvenon.mdx"
5+
"unifiedjs.vscode-mdx",
66
]
77
}

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Additional Use Grant: You may make use of the Licensed Work, provided that you d
1616
error-reporting or application monitoring features of the
1717
Licensed Work.
1818

19-
Change Date: 2025-08-15
19+
Change Date: 2025-10-15
2020

2121
Change License: Apache License, Version 2.0
2222

gatsby-ssr.js

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,31 @@ export const onPreRenderHTML = ({getHeadComponents}) => {
2323
}
2424
})
2525
};
26+
27+
export const onRenderBody = ({ setHeadComponents }) => {
28+
setHeadComponents([
29+
// Set up the data layer, enable privacy defaults
30+
<script
31+
key="gtm-data-layer"
32+
type="text/javascript"
33+
dangerouslySetInnerHTML={{
34+
__html: `
35+
(function(w, l) {
36+
w[l] = w[l] || [];
37+
if(/in-app/.test(window.location.pathname)){
38+
w[l].push({ 'disableDrift': 'true' })
39+
}
40+
w[l].push({ 'gtm.start': new Date().getTime(), event: 'gtm.js' })
41+
})(window, 'dataLayer');
42+
`,
43+
}}
44+
/>,
45+
// Fetch Tag Manager
46+
<script
47+
key="gtm-script"
48+
src={`https://www.googletagmanager.com/gtm.js?id=GTM-N72TJRH`}
49+
async={true}
50+
/>,
51+
]);
52+
};
53+

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
"@mdx-js/mdx": "^1.6.18",
1616
"@mdx-js/react": "^1.6.18",
1717
"@sentry-internal/global-search": "0.1.3",
18-
"@sentry/gatsby": "^7.0.0",
19-
"@sentry/tracing": "^7.0.0",
18+
"@sentry/gatsby": "^7.15.0",
19+
"@sentry/tracing": "^7.15.0",
2020
"@sentry/webpack-plugin": "^1.18.3",
2121
"@types/dompurify": "^2.0.3",
2222
"@types/node": "^12",
@@ -61,7 +61,7 @@
6161
"gray-matter": "^4.0.2",
6262
"jsdom": "^16.3.0",
6363
"node-sass": "^4.14.1",
64-
"platformicons": "^5.3.1",
64+
"platformicons": "^5.3.5",
6565
"prism-sentry": "^1.0.2",
6666
"prismjs": "^1.27.0",
6767
"prop-types": "^15.7.2",

src/components/banner.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ import React, { useState, useEffect } from "react";
55
// This is a lazy way of doing things but will work until
66
// we put a more robust solution in place.
77
//
8-
const SHOW_BANNER = true;
8+
const SHOW_BANNER = false;
99
const BANNER_TEXT =
10-
"Join us in sorting through the madness that is code, and finding new ways to improve workflow productivity at DEX 2022 on Sept. 28, 2022.";
10+
"Learn how to customize performance monitoring in real time with Tonal in a live workshop on Nov. 1 @ 11am PT.";
1111
const BANNER_LINK_URL =
12-
"https://sentry.io/events/dex/?promo_name=docs-banner";
12+
"https://sentry.io/resources/ama-deep-dive-performance-monitoring/?promo_name=docs-banner";
1313
const BANNER_LINK_TEXT = "Register here.";
1414
const OPTIONAL_BANNER_IMAGE = null;
1515

src/components/internalDocsSidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const query = graphql`
88
allSitePage(
99
filter: {
1010
path: { regex: "/contributing/" }
11-
context: { draft: { ne: false } }
11+
context: { draft: { ne: true } }
1212
}
1313
) {
1414
nodes {

src/components/layout.tsx

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
import React from "react";
2+
import { Nav } from "react-bootstrap";
23

34
import Breadcrumbs from "./breadcrumbs";
45
import Header from "./header";
56
import Sidebar from "./sidebar";
67
import Navbar from "./navbar";
8+
import SmartLink from "./smartLink";
9+
import NavbarPlatformDropdown from "./navbarPlatformDropdown";
10+
import { getSandboxURL, SandboxOnly } from "./sandboxLink";
711

812
import "~src/css/screen.scss";
913

@@ -47,6 +51,45 @@ export default ({
4751
</div>
4852
</div>
4953
</div>
54+
<div className="d-sm-none d-block" id="navbar-menu">
55+
<Nav className="justify-content-center" style={{ flex: 1 }}>
56+
<NavbarPlatformDropdown />
57+
<Nav.Item>
58+
<SmartLink className="nav-link" to="/api/">
59+
API
60+
</SmartLink>
61+
</Nav.Item>
62+
<SandboxOnly>
63+
<Nav.Item>
64+
<Nav.Link
65+
className="text-primary"
66+
href={getSandboxURL().toString()}
67+
target="_blank"
68+
>
69+
Demo
70+
</Nav.Link>
71+
</Nav.Item>
72+
</SandboxOnly>
73+
<Nav.Item>
74+
<Nav.Link href="https://sentry.io/">
75+
Sign In
76+
<svg
77+
width="1em"
78+
height="1em"
79+
viewBox="0 0 16 16"
80+
className="bi bi-arrow-right-short"
81+
fill="currentColor"
82+
xmlns="http://www.w3.org/2000/svg"
83+
>
84+
<path
85+
fillRule="evenodd"
86+
d="M4 8a.5.5 0 0 1 .5-.5h5.793L8.146 5.354a.5.5 0 1 1 .708-.708l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L10.293 8.5H4.5A.5.5 0 0 1 4 8z"
87+
/>
88+
</svg>
89+
</Nav.Link>
90+
</Nav.Item>
91+
</Nav>
92+
</div>
5093
</div>
5194

5295
<main role="main" className="px-0">

src/components/pageGrid.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ import { sortPages } from "~src/utils";
77

88
const query = graphql`
99
query PageGridQuery {
10-
allSitePage {
10+
allSitePage(
11+
filter: {
12+
context: { draft: { ne: true } }
13+
}
14+
) {
1115
nodes {
1216
path
1317
context {

src/components/platformSidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const navQuery = graphql`
77
query PlatformNavQuery {
88
allSitePage(
99
filter: {
10-
context: { draft: { ne: false } }
10+
context: { draft: { ne: true } }
1111
path: { regex: "/^/(platforms|product)/" }
1212
}
1313
) {

src/components/sidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import SidebarLink from "./sidebarLink";
66

77
const navQuery = graphql`
88
query NavQuery {
9-
allSitePage(filter: { context: { draft: { ne: false } } }) {
9+
allSitePage(filter: { context: { draft: { ne: true } } }) {
1010
nodes {
1111
path
1212
context {

src/data/relay_metrics.json

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,28 @@
11
[
2+
{
3+
"type": "Histogram",
4+
"name": "dynamic_sampling.change_duration",
5+
"description": "Time in milliseconds from the start of transaction until the final name is determined.\n\nIf the transaction name changes multiple times, this records only the last instance. This\nmetric is not logged if there were no changes to the transaction name.\n\nThis metric is tagged with:\n\n- `source`: The transaction source value in the final event payload.\n- `platform`: The SDK platform value of the event payload.\n- `sdk_name`: The name of the client SDK as reported in the event payload.\n- `sdk_version`: The version of the client SDK as reported in the event payload.",
6+
"features": []
7+
},
8+
{
9+
"type": "Histogram",
10+
"name": "dynamic_sampling.change_pct",
11+
"description": "Timing relative to the transaction duration until the final name is determined.\n\nThis is a percentage between `0.0` and `100.0`.\n\nThis metric is tagged with:\n\n- `source`: The transaction source value in the final event payload.\n- `platform`: The SDK platform value of the event payload.\n- `sdk_name`: The name of the client SDK as reported in the event payload.\n- `sdk_version`: The version of the client SDK as reported in the event payload.",
12+
"features": []
13+
},
14+
{
15+
"type": "Histogram",
16+
"name": "dynamic_sampling.changes",
17+
"description": "Counts how often a transaction name was changed before submitting the final transaction.\n\nA value of `0` indicates that the transaction was created with the final transaction name.\nIn this case, the DSC will have the correct transaction name guaranteed. However, to\ndetermine how many traces had wrong transaction names propagated, check the\n`dynamic_sampling.propagations`.\n\nThis metric is tagged with:\n\n- `source`: The transaction source value in the final event payload.\n- `platform`: The SDK platform value of the event payload.\n- `sdk_name`: The name of the client SDK as reported in the event payload.\n- `sdk_version`: The version of the client SDK as reported in the event payload.",
18+
"features": []
19+
},
20+
{
21+
"type": "Histogram",
22+
"name": "dynamic_sampling.propagations",
23+
"description": "Counts the number of propagations before the final transaction name has been determined.\n\nA value of `0` indicates that the entire trace had identical transaction names in the\nDynamic Sampling Context (DSC). This means that the entire trace is sampled consistently.\n\nNote that this differs from `dynamic_sampling.changes`, which indicates changes even in the\nabsence of propagations.\n\nThis metric is tagged with:\n\n- `source`: The transaction source value in the final event payload.\n- `platform`: The SDK platform value of the event payload.\n- `sdk_name`: The name of the client SDK as reported in the event payload.\n- `sdk_version`: The version of the client SDK as reported in the event payload.",
24+
"features": []
25+
},
226
{
327
"type": "Counter",
428
"name": "event.accepted",
@@ -142,7 +166,7 @@
142166
{
143167
"type": "Histogram",
144168
"name": "metrics.buckets.batches_per_partition",
145-
"description": "The number of batches emitted per partition by [`crate::aggregation::Aggregator`].\n\nThis metric is only emitted if a partition key is set.\n\nTags:\n- `partition_key`: The logical sharding key for the current batch.",
169+
"description": "The number of batches emitted per partition by [`crate::aggregation::Aggregator`].",
146170
"features": []
147171
},
148172
{
@@ -181,6 +205,12 @@
181205
"description": "The number of metric buckets flushed in a cycle for each project.\n\nRelay scans metric buckets in regular intervals and flushes expired buckets. This histogram\nis logged for each project that is being flushed. The count of the histogram values is\nequivalent to the number of projects being flushed.",
182206
"features": []
183207
},
208+
{
209+
"type": "Histogram",
210+
"name": "metrics.buckets.invalid_timestamp",
211+
"description": "Distribution of invalid bucket timestamps observed, relative to the time of observation.\n\nThis is a temporary metric to better understand why we see so many invalid timestamp errors.",
212+
"features": []
213+
},
184214
{
185215
"type": "Counter",
186216
"name": "metrics.buckets.merge.hit",
@@ -199,10 +229,16 @@
199229
"description": "Number of times that parsing a metrics bucket item from an envelope failed.",
200230
"features": []
201231
},
232+
{
233+
"type": "Histogram",
234+
"name": "metrics.buckets.partition_keys",
235+
"description": "Distribution of flush buckets over partition keys.\n\nThe distribution of buckets should be even.\nIf it is not, this metric should expose it.",
236+
"features": []
237+
},
202238
{
203239
"type": "Histogram",
204240
"name": "metrics.buckets.per_batch",
205-
"description": "The number of buckets in a batch emitted by [`crate::aggregation::Aggregator`].\n\nThis corresponds to the number of buckets that will end up in an envelope.\n\nTags:\n- `partition_key`: The logical sharding key for the current batch.",
241+
"description": "The number of buckets in a batch emitted by [`crate::aggregation::Aggregator`].\n\nThis corresponds to the number of buckets that will end up in an envelope.",
206242
"features": []
207243
},
208244
{

src/docs/clients/cocoa/advanced.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
draft: false
2+
draft: true
33
categories: []
44
toc: true
55
title: Advanced Usage

src/docs/clients/cocoa/dsym.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
draft: false
2+
draft: true
33
categories: []
44
toc: true
55
title: Uploading Debug Symbols

src/docs/clients/cocoa/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
draft: false
2+
draft: true
33
categories: []
44
toc: true
55
title: Cocoa

src/docs/clients/cocoa/migration.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
draft: false
2+
draft: true
33
categories: []
44
toc: true
55
title: Migration Guide

0 commit comments

Comments
 (0)