|
| 1 | +/* |
| 2 | + * Copyright The OpenTelemetry Authors |
| 3 | + * |
| 4 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | + * you may not use this file except in compliance with the License. |
| 6 | + * You may obtain a copy of the License at |
| 7 | + * |
| 8 | + * https://www.apache.org/licenses/LICENSE-2.0 |
| 9 | + * |
| 10 | + * Unless required by applicable law or agreed to in writing, software |
| 11 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | + * See the License for the specific language governing permissions and |
| 14 | + * limitations under the License. |
| 15 | + */ |
| 16 | + |
| 17 | +/* |
| 18 | + * This file contains constants for values that where replaced/removed from |
| 19 | + * Semantic Conventions long enough ago that they do not have `ATTR_*` |
| 20 | + * constants in the `@opentelemetry/semantic-conventions` package. Eventually |
| 21 | + * it is expected that this instrumention will be updated to emit telemetry |
| 22 | + * using modern Semantic Conventions, dropping the need for the constants in |
| 23 | + * this file. |
| 24 | + */ |
| 25 | + |
| 26 | +/** |
| 27 | + * The execution ID of the current function execution. |
| 28 | + * |
| 29 | + * @deprecated Use ATTR_FAAS_INVOCATION_ID in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}). |
| 30 | + */ |
| 31 | +export const ATTR_FAAS_EXECUTION = 'faas.execution' as const; |
| 32 | + |
| 33 | +/** |
| 34 | + * The message destination name. This might be equal to the span name but is required nevertheless. |
| 35 | + * |
| 36 | + * @deprecated Use ATTR_MESSAGING_DESTINATION_NAME in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}). |
| 37 | + */ |
| 38 | +export const ATTR_MESSAGING_DESTINATION = 'messaging.destination' as const; |
| 39 | + |
| 40 | +/** |
| 41 | + * The kind of message destination. |
| 42 | + * |
| 43 | + * @deprecated Removed in semconv v1.20.0. |
| 44 | + */ |
| 45 | +export const ATTR_MESSAGING_DESTINATION_KIND = |
| 46 | + 'messaging.destination_kind' as const; |
| 47 | + |
| 48 | +/** |
| 49 | + * The kind of message destination. |
| 50 | + * |
| 51 | + * @deprecated Removed in semconv v1.20.0. |
| 52 | + */ |
| 53 | +export const MESSAGING_DESTINATION_KIND_VALUE_TOPIC = 'topic' as const; |
| 54 | + |
| 55 | +/** |
| 56 | + * A string identifying the kind of message consumption as defined in the [Operation names](#operation-names) section above. If the operation is "send", this attribute MUST NOT be set, since the operation can be inferred from the span kind in that case. |
| 57 | + * |
| 58 | + * @deprecated Use MESSAGING_OPERATION_TYPE_VALUE_RECEIVE in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}). |
| 59 | + */ |
| 60 | +export const MESSAGING_OPERATION_VALUE_RECEIVE = 'receive' as const; |
0 commit comments