From 0dbaa6122f982a4c61e8659855861ace7add34b4 Mon Sep 17 00:00:00 2001 From: Mano Toth Date: Thu, 3 Jul 2025 13:15:11 +0200 Subject: [PATCH 1/4] First implementation --- getting-started-guide/getting-started.mdx | 4 +++ introduction.mdx | 4 +++ snippets/survey.jsx | 32 +++++++++++++++++++++++ 3 files changed, 40 insertions(+) create mode 100644 snippets/survey.jsx diff --git a/getting-started-guide/getting-started.mdx b/getting-started-guide/getting-started.mdx index aa020876..3fac9074 100644 --- a/getting-started-guide/getting-started.mdx +++ b/getting-started-guide/getting-started.mdx @@ -5,6 +5,8 @@ icon: rocket keywords: ['axiom documentation', 'documentation', 'axiom', 'stream data', 'analyze data', 'explore data'] --- +import { Survey } from "/snippets/survey.jsx" + Axiom user interface @@ -107,3 +109,5 @@ Choose one of the following learning pathways: - [Try out Axiom](/getting-started-guide/try-out-axiom) for a more hands-on experience that allows you to explore Axiom and quickly leverage the power of your event data. - [Learn about Axiom](/getting-started-guide/learn-about-axiom) for a more educational experience that explains the most important concepts and ideas behind Axiom and how your organization can benefit from Axiom’s offering. + + diff --git a/introduction.mdx b/introduction.mdx index 5e649242..53adb3db 100644 --- a/introduction.mdx +++ b/introduction.mdx @@ -5,6 +5,8 @@ icon: hand-wave keywords: ["axiom documentation", "axiom", "monitoring", "observability", "logging", "user guide", "best practices"] --- +import { Survey } from "/snippets/survey.jsx" + Axiom user interface @@ -99,3 +101,5 @@ If you’re new to Axiom, check out the [Get started](/getting-started-guide/get - [Community](https://axiom.co/discord): Visit the Axiom Discord community to learn, ask questions, and discuss ideas. - [Contact Support](https://axiom.co/contact): Get in touch with the support team for questions not covered here. + + diff --git a/snippets/survey.jsx b/snippets/survey.jsx new file mode 100644 index 00000000..baac45c2 --- /dev/null +++ b/snippets/survey.jsx @@ -0,0 +1,32 @@ +export const Survey = () => { + const ref = window.location.href; + useEffect(() => { + const scriptId = 'tally-embed'; + if (!document.getElementById(scriptId)) { + const script = document.createElement('script'); + script.id = scriptId; + script.src = 'https://tally.so/widgets/embed.js'; + script.async = true; + document.body.appendChild(script); + } + + window.TallyConfig = { + formId: 'wQqlyl', + popup: { + open: { + trigger: 'time', + ms: 1, // 10 seconds + }, + "hideTitle": true, + "autoClose": 3000, + // showOnce: true, + // doNotShowAfterSubmit: true, + }, + hiddenFields: { + "origin": ref, + }, + }; + }, []); + + return null; +}; From d468452147dcca794747850fd90c60394b772b34 Mon Sep 17 00:00:00 2001 From: Mano Toth Date: Thu, 3 Jul 2025 13:15:45 +0200 Subject: [PATCH 2/4] Update survey.jsx --- snippets/survey.jsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/snippets/survey.jsx b/snippets/survey.jsx index baac45c2..2e5abe7d 100644 --- a/snippets/survey.jsx +++ b/snippets/survey.jsx @@ -19,11 +19,8 @@ export const Survey = () => { }, "hideTitle": true, "autoClose": 3000, - // showOnce: true, - // doNotShowAfterSubmit: true, - }, - hiddenFields: { - "origin": ref, + "showOnce": true, + "doNotShowAfterSubmit": true, }, }; }, []); From 4611e47c44e6959fe2aa75b760f75e4f95b4b0ec Mon Sep 17 00:00:00 2001 From: Mano Toth Date: Thu, 3 Jul 2025 13:19:14 +0200 Subject: [PATCH 3/4] Update survey.jsx --- snippets/survey.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/survey.jsx b/snippets/survey.jsx index 2e5abe7d..b55ad6ab 100644 --- a/snippets/survey.jsx +++ b/snippets/survey.jsx @@ -15,7 +15,7 @@ export const Survey = () => { popup: { open: { trigger: 'time', - ms: 1, // 10 seconds + ms: 10000, // 10 seconds }, "hideTitle": true, "autoClose": 3000, From 67fc1d2b9e559d0f1e2b1cb1af1c5fc4c8067273 Mon Sep 17 00:00:00 2001 From: Mano Toth Date: Thu, 3 Jul 2025 13:58:02 +0200 Subject: [PATCH 4/4] Add to intro pages --- apl/introduction.mdx | 5 ++++- restapi/introduction.mdx | 5 ++++- send-data/ingest.mdx | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/apl/introduction.mdx b/apl/introduction.mdx index 98af570a..c305808e 100644 --- a/apl/introduction.mdx +++ b/apl/introduction.mdx @@ -7,6 +7,7 @@ keywords: ['axiom documentation', 'documentation', 'axiom', 'APL', 'axiom proces --- import Prerequisites from "/snippets/minimal-prerequisites.mdx" +import { Survey } from "/snippets/survey.jsx" The Axiom Processing Language (APL) is a query language that’s perfect for getting deeper insights from your data. Whether logs, events, analytics, or similar, APL provides the flexibility to filter, manipulate, and summarize your data exactly the way you need it. @@ -94,4 +95,6 @@ Check out the [list of sample queries](/apl/tutorial) or explore the supported o - [Scalar functions](/apl/scalar-functions/) - [Aggregation functions](/apl/aggregation-function/) - [Tabular operators](/apl/tabular-operators/) -- [Scalar operators](/apl/scalar-operators/) \ No newline at end of file +- [Scalar operators](/apl/scalar-operators/) + + diff --git a/restapi/introduction.mdx b/restapi/introduction.mdx index 101166af..81c23674 100644 --- a/restapi/introduction.mdx +++ b/restapi/introduction.mdx @@ -13,6 +13,7 @@ popularityOrder: 1 import Prerequisites from "/snippets/minimal-prerequisites.mdx" import ReplaceDomain from "/snippets/replace-domain.mdx" import ReplaceDatasetToken from "/snippets/replace-dataset-token.mdx" +import { Survey } from "/snippets/survey.jsx" You can use the Axiom API (Application Programming Interface) to send data to Axiom, query data, and manage resources programmatically. This page covers the basics for interacting with the Axiom API. @@ -91,4 +92,6 @@ Below is a list of the types of data used within the Axiom API: ## What's next - [Ingest data via API](/restapi/ingest) -- [Query data via API](/restapi/query) \ No newline at end of file +- [Query data via API](/restapi/query) + + diff --git a/send-data/ingest.mdx b/send-data/ingest.mdx index ae73133a..10e8db27 100644 --- a/send-data/ingest.mdx +++ b/send-data/ingest.mdx @@ -10,6 +10,7 @@ logoId: 'http' import ReplaceDatasetToken from "/snippets/replace-dataset-token.mdx" import ReplaceDomain from "/snippets/replace-domain.mdx" +import { Survey } from "/snippets/survey.jsx" Send (ingest), transport, and fetch data from different sources such as Relational database, web logs, batch data, real-time, app logs, streaming data, etc. for later usage with the Axiom API. @@ -317,4 +318,6 @@ If you include the `_time` field in the ingested data, ensure the `_time` field When sending data into Axiom, follow these best practices to optimize performance and reliability: - **Batch events:** Use a log forwarder, [collector](#data-shippers), or [Axiom‘s official SDKs](#client-libraries) to group multiple events into a single request before sending them to Axiom. This reduces the number of API calls and improves overall throughput. Avoid implementing batching within your app itself as this introduces additional complexity and requires careful management of buffers and error handling. - **Use compression:** Enable gzip, zstd compression for your requests to reduce bandwidth usage and potentially improve response time. -- **Handle rate limiting and errors:** Use [Axiom‘s official libraries and SDKs](#client-libraries) which automatically implement best practices for handling rate limiting and errors. For advanced use cases or custom implementations, consider adding a fallback mechanism to store events locally or in cold storage if ingestion consistently fails after retries. \ No newline at end of file +- **Handle rate limiting and errors:** Use [Axiom‘s official libraries and SDKs](#client-libraries) which automatically implement best practices for handling rate limiting and errors. For advanced use cases or custom implementations, consider adding a fallback mechanism to store events locally or in cold storage if ingestion consistently fails after retries. + +