Skip to content

Commit 0828f26

Browse files
author
markzegarelli
authored
Make regional config URLs a snippet (#3689)
1 parent acb25f2 commit 0828f26

File tree

10 files changed

+14
-30
lines changed

10 files changed

+14
-30
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
For Business plans with access to [Regional Segment](/docs/guides/regional-segment), you can use the `host` configuration parameter to send data to the desired region:
2+
1. Oregon (Default) — `api.segment.io/`
3+
2. Dublin — `events.eu1.segmentapis.com/`

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,13 @@ using the `Analytics` singleton anywhere in your code.
4949
The default initialization settings are production-ready.
5050

5151
### Regional configuration
52-
For Business plans with access to [Regional Segment](/docs/guides/regional-segment), you can use the `host` configuration parameter to send data to the desired region:
53-
1. Oregon (Default) — `api.segment.io/v1`
54-
2. Dublin — `events.eu1.segmentapis.com/`
52+
{% include content/regional-config.md %}
5553

5654
## Identify
5755

5856
`identify` lets you tie a user to their actions and record traits about them. It includes a unique User ID and any optional traits you know about them.
5957

60-
We recommend calling `identify` a single time when the user's account is first created, and only identifying again later when their traits are change.
58+
Segment recommends calling `identify` a single time when the user's account is first created, and only identifying again later when their traits are change.
6159

6260
Example `identify` call:
6361

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,7 @@ That will create a `client` that you can use to send data to Segment for your so
4040
The default initialization settings are production-ready and queue 20 messages before sending a batch request, and a 5 second interval.
4141

4242
### Regional configuration
43-
For Business plans with access to [Regional Segment](/docs/guides/regional-segment), you can use the `host` configuration parameter to send data to the desired region:
44-
1. Oregon (Default) — `api.segment.io/v1`
45-
2. Dublin — `events.eu1.segmentapis.com/`
46-
43+
{% include content/regional-config.md %}
4744
## Identify
4845

4946
> note ""

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ The HTTP API has no hard rate limit. However, Segment recommends not exceeding 5
3535
There is a maximum of `32KB` per normal API request. The `batch` API endpoint accepts a maximum of `500KB` per request, with a limit of `32KB` per event in the batch. If you are sending data from a server source, Segment's API responds with `400 Bad Request` if these limits are exceeded.
3636

3737
## Regional configuration
38-
For Business plans with access to [Regional Segment](/docs/guides/regional-segment), you can use the `host` configuration parameter to send data to the desired region:
39-
1. Oregon (Default) — `api.segment.io/v1`
40-
2. Dublin — `events.eu1.segmentapis.com/`
38+
{% include content/regional-config.md %}
4139

4240
## Identify
4341

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,7 @@ Although not enforced at compile time, make sure you provide either of `userId`
5959
The following examples use [Guava's](https://github.com/google/guava) immutable maps, but feel free to use plain old Java maps instead.
6060

6161
### Regional configuration
62-
For Business plans with access to [Regional Segment](/docs/guides/regional-segment), you can use the `host` configuration parameter to send data to the desired region:
63-
1. Oregon (Default) — `api.segment.io/v1`
64-
2. Dublin — `events.eu1.segmentapis.com/`
62+
{% include content/regional-config.md %}
6563
## Identify
6664

6765
> note ""

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,7 @@ To get started with the Analytics-Kotlin server library:
6565
`useLifecycleObserver` | Default set to `false`. <br> Set to `true` to use `LifecycleObserver` to track Application lifecycle events. |
6666
6767
### Regional configuration
68-
For Business plans with access to [Regional Segment](/docs/guides/regional-segment), you can use the `host` configuration parameter to send data to the desired region:
69-
1. Oregon (Default) — `api.segment.io/v1`
70-
2. Dublin — `events.eu1.segmentapis.com/`
68+
{% include content/regional-config.md %}
7169
## Tracking Methods
7270
7371
Once you've installed the mobile or server Analytics-Kotlin library, you can start collecting data through Segment's tracking methods:

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,7 @@ You only need to initialize once at the start of your program. You can then keep
7979
The default initialization settings are production-ready and queue messages on another thread before sending any requests. In development you might want to use [development settings](/docs/connections/sources/catalog/libraries/server/net/#development-settings).
8080

8181
### Regional configuration
82-
For Business plans with access to [Regional Segment](/docs/guides/regional-segment), you can use the `host` configuration parameter to send data to the desired region:
83-
1. Oregon (Default) — `api.segment.io/v1`
84-
2. Dublin — `events.eu1.segmentapis.com/`
82+
{% include content/regional-config.md %}
8583

8684
## Identify
8785

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,7 @@ Of course, you'll want to replace `YOUR_WRITE_KEY` with your actual **Write Key*
4444
The default PHP consumer is the [lib-curl consumer](#lib-curl-consumer). If this is not working well for you, or if you have a high-volume project, you may want to try one of our other consumers like the [fork-curl consumer](#fork-curl-consumer).
4545

4646
### Regional configuration
47-
For Business plans with access to [Regional Segment](/docs/guides/regional-segment), you can use the `host` configuration parameter to send data to the desired region:
48-
1. Oregon (Default) — `api.segment.io/v1`
49-
2. Dublin — `events.eu1.segmentapis.com/`
47+
{% include content/regional-config.md %}
5048

5149
## Identify
5250

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,7 @@ analytics.send = False
5656
**Using Django?** Check out the [Django docs](/docs/connections/sources/catalog/libraries/server/python/#django).
5757

5858
### Regional configuration
59-
For Business plans with access to [Regional Segment](/docs/guides/regional-segment), you can use the `host` configuration parameter to send data to the desired region:
60-
1. Oregon (Default) — `https://api.segment.io/v1`
61-
2. Dublin — `https://events.eu1.segmentapis.com/`
59+
{% include content/regional-config.md %}
6260

6361
## Identify
6462

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,14 @@ If you're using Rails, you can stick that initialization logic in `config/initia
4545
> The analytics-ruby gem makes requests asynchronously, which can sometimes be suboptimal and difficult to debug if you're pairing it with a queuing system like Sidekiq/delayed job/sucker punch/resqueue. If you'd prefer to use a gem that makes requests synchronously, you can check out [`simple_segment`](https://github.com/whatthewhat/simple_segment){:target="_blank"} , an API-compatible drop-in replacement for the standard gem that does its work synchronously inline. Big thanks to [Mikhail Topolskiy](https://github.com/whatthewhat){:target="_blank"} for his stewardship of this alternative gem!
4646
4747
### Regional configuration
48-
For Business plans with access to [Regional Segment](/docs/guides/regional-segment), you can use the `host` configuration parameter to send data to the desired region:
49-
1. Oregon (Default) — `api.segment.io/v1`
50-
2. Dublin — `events.eu1.segmentapis.com/`
48+
{% include content/regional-config.md %}
5149

5250
## Identify
5351

5452
> note ""
5553
> **Good to know**: For any of the different methods described on this page, you can replace the properties and traits in the code samples with variables that represent the data collected.
5654
57-
The `identify` method is how you associate your users and their actions to a recognizable `userId` and `traits`. You can [find details on the identify method payload in our Spec](/docs/connections/spec/identify/).
55+
The `identify` method is how you associate your users and their actions to a recognizable `userId` and `traits`. You can [find details on the identify method payload in the Spec](/docs/connections/spec/identify/).
5856

5957
The `identify` call has the following fields:
6058

0 commit comments

Comments
 (0)