Skip to content

Commit

Permalink
[Removal] Remove deprecated experimental semantic conventions (open-t…
Browse files Browse the repository at this point in the history
  • Loading branch information
marcalff committed Nov 7, 2022
1 parent b8b715f commit 4de5387
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 354 deletions.
14 changes: 0 additions & 14 deletions api/include/opentelemetry/common/string_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,6 @@

#include "opentelemetry/nostd/string_view.h"

/** DJB2 hash function below is near-perfect hash used by several systems.
* Ref. http://www.cse.yorku.ca/~oz/hash.html
* </summary>
* <param name="str">String to hash</param>
* <param name="h">Initial offset</param>
* <returns>32 bit code</returns>
*/
constexpr uint32_t hashCode(const char *str, uint32_t h = 0)
{
return (uint32_t)(!str[h] ? 5381 : ((uint32_t)hashCode(str, h + 1) * (uint32_t)33) ^ str[h]);
}
#define OTEL_CPP_CONST_UINT32_T(x) std::integral_constant<uint32_t, (uint32_t)x>::value
#define OTEL_CPP_CONST_HASHCODE(name) OTEL_CPP_CONST_UINT32_T(hashCode(#name))

OPENTELEMETRY_BEGIN_NAMESPACE
namespace common
{
Expand Down
197 changes: 0 additions & 197 deletions api/include/opentelemetry/trace/experimental_semantic_conventions.h

This file was deleted.

This file was deleted.

0 comments on commit 4de5387

Please sign in to comment.