Skip to content

Commit fe0ff57

Browse files
authored
Merge pull request #89 from specmatic/telemetry
chore: fixup and document telemetry configuration
2 parents 5c1b424 + df6ac01 commit fe0ff57

File tree

3 files changed

+26
-6
lines changed

3 files changed

+26
-6
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"version": 2,
3+
"disableTelemetry": true
4+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"version": 3,
3+
"specmatic": {
4+
"settings": {
5+
"general": {
6+
"disableTelemetry": true
7+
}
8+
}
9+
}
10+
}

docs/references/configuration/telemetry.mdx

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,18 @@
22
title: Telemetry
33
sidebar_position: 12
44
---
5+
import {V2V3SpecmaticConfigTabs} from "../../../src/components/V2V3SpecmaticConfigTabs";
6+
57
# Telemetry
68

79
Specmatic offers users insights into the [usage](https://insights.specmatic.io/dashboard/settings/usage) of its features. But it goes beyond usage.
810
[Specmatic Insights](/enterprise_onboarding/insights) provides reports on coverage, service dependency graphs, adoption by providers and consumers etc.
911

1012
## Typical Payload
13+
1114
Usage analytics are posted roughly every minute (and once at exit) with the following payload shape.
1215

16+
1317
```json
1418
{
1519
"usages": [
@@ -20,7 +24,7 @@ Usage analytics are posted roughly every minute (and once at exit) with the foll
2024
],
2125
"consumption": [
2226
{
23-
"product": "Specmatic AsyncAPI",
27+
"product": "Specmatic Enterprise",
2428
"feature": "test",
2529
"used": 10,
2630
"protocol": "mqtt+Amazon SQS"
@@ -30,7 +34,7 @@ Usage analytics are posted roughly every minute (and once at exit) with the foll
3034
],
3135
"usageMetadata": {
3236
"productName": "Specmatic Enterprise",
33-
"productVersion": "2.1.3-SNAPSHOT",
37+
"productVersion": "1.0.3",
3438
"runId": "AD4BF181-6E88-4380-A344-9E0A85EF916D",
3539
"osName": "Linux",
3640
"osVersion": "6.12.54-linuxkit",
@@ -43,9 +47,11 @@ Usage analytics are posted roughly every minute (and once at exit) with the foll
4347
```
4448

4549
## Opt-Out of Usage Analytics
46-
Trial and other free-tier users may choose to opt-out of Telemetry with the following top-level configuration in specmatic.yml file.
4750

48-
```yaml
49-
disable_telemetry = true
50-
```
51+
Trial and other free-tier users may choose to opt-out of Telemetry with the following configuration in specmatic.yml file.
52+
53+
<V2V3SpecmaticConfigTabs
54+
v2Object={require('./includes/telemetry/v2/specmatic.json')}
55+
v3Object={require('./includes/telemetry/v3/specmatic.json')}/>
56+
5157
This will turn off Telemetry and notify Specmatic Insights that the user has opted-out.

0 commit comments

Comments
 (0)