graphql_attributes.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*
  2. * Copyright The OpenTelemetry Authors
  3. * SPDX-License-Identifier: Apache-2.0
  4. */
  5. /*
  6. * DO NOT EDIT, this is an Auto-generated file from:
  7. * buildscripts/semantic-convention/templates/registry/semantic_attributes-h.j2
  8. */
  9. #pragma once
  10. #include "opentelemetry/common/macros.h"
  11. #include "opentelemetry/version.h"
  12. OPENTELEMETRY_BEGIN_NAMESPACE
  13. namespace semconv
  14. {
  15. namespace graphql
  16. {
  17. /**
  18. The GraphQL document being executed.
  19. <p>
  20. The value may be sanitized to exclude sensitive information.
  21. */
  22. static constexpr const char *kGraphqlDocument = "graphql.document";
  23. /**
  24. The name of the operation being executed.
  25. */
  26. static constexpr const char *kGraphqlOperationName = "graphql.operation.name";
  27. /**
  28. The type of the operation being executed.
  29. */
  30. static constexpr const char *kGraphqlOperationType = "graphql.operation.type";
  31. namespace GraphqlOperationTypeValues
  32. {
  33. /**
  34. GraphQL query
  35. */
  36. static constexpr const char *kQuery = "query";
  37. /**
  38. GraphQL mutation
  39. */
  40. static constexpr const char *kMutation = "mutation";
  41. /**
  42. GraphQL subscription
  43. */
  44. static constexpr const char *kSubscription = "subscription";
  45. } // namespace GraphqlOperationTypeValues
  46. } // namespace graphql
  47. } // namespace semconv
  48. OPENTELEMETRY_END_NAMESPACE