Skip to content

Commit ae58d3e

Browse files
authored
Merge pull request #2455 from segmentio/develop
Release 22.5.2
2 parents 039c1dc + dd1d50b commit ae58d3e

File tree

14 files changed

+150
-116
lines changed

14 files changed

+150
-116
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<div class="premonition warning"><div class="fa fa-exclamation-circle"></div><div class="content"><p class="header">HTTP Tracking API limits</p><p>Segment’s HTTP Tracking API accepts batch requests up to <strong>500kb</strong>. To avoid errors in event creation, ensure that individual event payload sizes remain below <strong>32kb</strong>.</p>
2+
3+
4+
</div></div>

src/_includes/content/troubleshooting-server-debugger.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@
33
1. Double check that you've followed all the steps in the [Quickstart](quickstart/).
44

55
2. Make sure that you're calling one of our API methods once the library is successfully installed—[`identify`](#identify), [`track`](#track), etc.
6+
7+
3. Make sure your application isn't shutting down before the `Analytics.Client` local queue events are pushed to Segemet. You can manually call `Analytics.Client.Flush()` to ensure the queue is fully processed before shutdown.

src/_includes/menu/menu-source.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,13 @@
3636
{% assign integrations = site.data.catalog.sources.items | where: "categories", category %}
3737

3838
{% for integration in integrations %}
39+
{% unless integration.hidden %}
3940
<li class="menu-item menu-item--compact">
4041
<a href="{{ site.baseurl }}/{{ integration.url }}/" class="menu-item__link">
4142
{{ integration.display_name }}
4243
</a>
4344
</li>
45+
{% endunless %}
4446
{% endfor %}
4547
</ul>
4648
</li>
@@ -61,7 +63,7 @@
6163
{% assign integrations = site.data.catalog.sources.items %}
6264

6365
{% for integration in integrations %}
64-
{% unless integration.categories contains promoted_categories[0] or integration.categories contains promoted_categories[1] or integration.categories contains promoted_categories[2] or integration.categories contains promoted_categories[3] %}
66+
{% unless integration.categories contains promoted_categories[0] or integration.categories contains promoted_categories[1] or integration.categories contains promoted_categories[2] or integration.categories contains promoted_categories[3] or integration.hidden%}
6567
<li class="menu-item menu-item--compact">
6668
<a href="{{ site.baseurl }}/{{ integration.url }}/" class="menu-item__link">
6769
{{ integration.display_name }}

src/connections/sources/catalog/cloud-apps/intercom/index.md

Lines changed: 113 additions & 114 deletions
Large diffs are not rendered by default.

src/connections/sources/catalog/libraries/server/go/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,8 @@ By default, our library will flush:
378378

379379
There is a maximum of `500KB` per batch request and `32KB` per call.
380380

381+
{% include content/tracking-api-limit.md %}
382+
381383
Sometimes you might not want batching (eg. when debugging, or in short-lived programs). You can turn off batching by setting the `FlushAt` argument to `1`, and your requests will always be sent right away.
382384

383385

src/connections/sources/catalog/libraries/server/go/v2/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,9 @@ By default, our library will flush:
324324

325325
There is a maximum of `500KB` per batch request and `32KB` per call.
326326

327+
{% include content/tracking-api-limit.md %}
328+
329+
327330
Sometimes you might not want batching (eg. when debugging, or in short-lived programs). You can turn off batching by setting the `FlushAt` argument to `1`, and your requests will always be sent right away.
328331

329332

src/connections/sources/catalog/libraries/server/http-api/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,9 @@ The `batch` method lets you send a series of `identify`, `group`, `track`, `page
264264

265265
There is a maximum of `500KB` per batch request and `32KB` per call.
266266

267+
{% include content/tracking-api-limit.md %}
268+
269+
267270
Here's the what the `batch` request signature looks like:
268271

269272
```

src/connections/sources/catalog/libraries/server/java/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,9 @@ Every method you call **does not** result in an HTTP request, but is queued in m
357357

358358
There is a maximum of `500KB` per batch request and `32KB` per call.
359359

360+
{% include content/tracking-api-limit.md %}
361+
362+
360363
## How do I flush right now?!
361364

362365
You can also flush on demand. For example, at the end of your program, you'll want to flush to make sure there's nothing left in the queue. Just call the `flush` method:

src/connections/sources/catalog/libraries/server/net/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,9 @@ By default (in async mode), this library starts a single seperate thread on init
400400

401401
There is a maximum of `500KB` per batch request and `32KB` per call.
402402

403+
{% include content/tracking-api-limit.md %}
404+
405+
403406

404407
### How do I turn batching off?
405408

src/connections/sources/catalog/libraries/server/php/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,9 @@ If your servers are handling more than 20 requests per second, you may want to l
402402

403403
There is a maximum of `500KB` per batch request and `32KB` per call.
404404

405+
{% include content/tracking-api-limit.md %}
406+
407+
405408
The lib-curl consumer is Segment's default PHP library, although you may still initialize it explicitly and set queue and batch sizes in the library's initialization settings.
406409

407410
```php

0 commit comments

Comments
 (0)