-
Notifications
You must be signed in to change notification settings - Fork 0
/
const.go
32 lines (23 loc) · 1.36 KB
/
const.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package common
const (
// Success is the string constant emitted at the end of the Bookbuyer/Bookthief logs when the test succeeded.
Success = "MAESTRO! THIS TEST SUCCEEDED!"
// Failure is the string constant emitted at the end of the Bookbuyer/Bookthief logs when the test failed.
Failure = "MAESTRO, WE HAVE A PROBLEM! THIS TEST FAILED!"
// BooksBoughtHeader is the header returned by the bookstore and observed by the bookbuyer.
BooksBoughtHeader = "Booksbought"
// IdentityHeader is the header returned by the bookstore and observed by the bookbuyer.
IdentityHeader = "Identity"
// BookstoreNamespaceEnvVar is the environment variable for the Bookbuyer namespace.
BookstoreNamespaceEnvVar = "BOOKSTORE_NAMESPACE"
// BookwarehouseNamespaceEnvVar is the environment variable for the Bookwarehouse namespace.
BookwarehouseNamespaceEnvVar = "BOOKWAREHOUSE_NAMESPACE"
// BookthiefExpectedResponseCodeEnvVar is the environment variable for Bookthief's expected HTTP response code
BookthiefExpectedResponseCodeEnvVar = "BOOKTHIEF_EXPECTED_RESPONSE_CODE"
// EnableEgressEnvVar is the environment variable to enable egress requests in the demo
EnableEgressEnvVar = "ENABLE_EGRESS"
)
// GetTracingHeaders returns headers used for distributed tracing with Jaeger
func GetTracingHeaders() []string {
return []string{"X-Ot-Span-Context", "X-Request-Id", "uber-trace-id"}
}