azure-sdk-for-cpp/sdk/template/azure-template/src/template_client.cpp
Larry Osterman 8ca08a1429
Initial implementation of OpenTelemetry APIs. (#3561)
* Start of tracing prototype

* Created initial implementation of azure-core-opentelemetry package

* New version of enabling MSVCRT Lib for static configs

* Attempt to add OpenTelemetry tests to build

* Take a dependency on OpenTelemetry version 1.3

* Added service API level tracing support

* API Review feedback
2022-05-23 16:44:22 -07:00

26 lines
528 B
C++

// Copyright (c) Microsoft Corporation. All rights reserved.
// SPDX-License-Identifier: MIT
#include "azure/template/template_client.hpp"
#include "private/package_version.hpp"
#include <string>
using namespace Azure::Template;
using namespace Azure::Template::_detail;
std::string TemplateClient::ClientVersion() const { return PackageVersion::ToString(); }
TemplateClient::TemplateClient(TemplateClientOptions) {}
int TemplateClient::GetValue(int key) const
{
if (key < 0)
{
return 0;
}
return key + 1;
}