# Services

This document contains information shared amongst all the services implementations:

## Table of Contents

- [Services](#services)
	- [Table of Contents](#table-of-contents)
	- [Config](#config)
	- [Tracing](#tracing)

## Config

* `originSystemId`
* See other configurations option in the service specific documentation

```javascript
const config = new ProductionConfiguration({
	originSystemId: 'your-system-name',
});
```

**originSystemId**[Required]: The system id / system code of the application making the request. This is used usually by the backend to easily trace a system.

## Tracing

Every request is traced via the `originSystemId` from the configuration and the following IDs should be passed for additional tracing:

**originUserId** [Optional]:  when the user Id is available you can pass it to the instance of the service created by the SDK via the `setOriginUser` public method (i.e. `yourServiceInstance.setOriginUser(originUserId);`).

**xRequestId** [Optional]: the ID of the initial request generated by the CDN (This is usually avaiable as X-Request-ID header).
