| 1 |
// Copyright The OpenTelemetry Authors |
| 2 |
// SPDX-License-Identifier: Apache-2.0 |
| 3 |
|
| 4 |
// Code generated by "internal/cmd/pdatagen/main.go". DO NOT EDIT. |
| 5 |
// To regenerate this file run "make genpdata". |
| 6 |
|
| 7 |
package internal |
| 8 |
|
| 9 |
const ( |
| 10 |
StatusCode_STATUS_CODE_UNSET = StatusCode(0) |
| 11 |
StatusCode_STATUS_CODE_OK = StatusCode(1) |
| 12 |
StatusCode_STATUS_CODE_ERROR = StatusCode(2) |
| 13 |
) |
| 14 |
|
| 15 |
// StatusCode is the status of the span, for the semantics of codes see |
| 16 |
// https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/api.md#set-status |
| 17 |
type StatusCode int32 |
| 18 |
|
| 19 |
var StatusCode_name = map[int32]string{ |
| 20 |
0: "STATUS_CODE_UNSET", |
| 21 |
1: "STATUS_CODE_OK", |
| 22 |
2: "STATUS_CODE_ERROR", |
| 23 |
} |
| 24 |
|
| 25 |
var StatusCode_value = map[string]int32{ |
| 26 |
"STATUS_CODE_UNSET": 0, |
| 27 |
"STATUS_CODE_OK": 1, |
| 28 |
"STATUS_CODE_ERROR": 2, |
| 29 |
} |