Skip to content
This repository has been archived by the owner on Feb 14, 2025. It is now read-only.

Commit

Permalink
Change x-restate-user-agent to x-restate-server, to be similar to htt…
Browse files Browse the repository at this point in the history
  • Loading branch information
slinkydeveloper committed Apr 16, 2024
1 parent 98bd326 commit fec17c9
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions service-invocation-protocol.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,22 +149,16 @@ In case the path format is not respected, or `serviceName` or `handlerName` is u

In case the invocation is accepted, `200` status code MUST be returned.

Additionally, the header `x-restate-user-agent` MAY be sent back, with the following format:
Additionally, the header `x-restate-server` MAY be sent back, with the following format:

```http request
x-restate-user-agent: <sdk-name> / <sdk-version>; <additional-metadata?>
x-restate-server: <sdk-name> / <sdk-version>
```

E.g.:

```http request
x-restate-user-agent: restate-sdk-java/0.8.0
```

Or:

```http request
x-restate-user-agent: restate-sdk-java/0.8.0; gitHash=0c5917b
x-restate-server: restate-sdk-java/0.8.0
```

This header is used for observability purposes by the Restate observability tools.
Expand Down

0 comments on commit fec17c9

Please sign in to comment.