Update version tag after 0.3.0 release (#1129)

* Update version tag after 0.3.0 release

* add test to force us updating it
This commit is contained in:
Piotr Kiełkowicz 2022-08-29 20:51:06 +02:00 committed by GitHub
parent bc0880f91a
commit 7adbbc76c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 32 additions and 1 deletions

View File

@ -8,6 +8,8 @@
- [`src/OpenTelemetry.AutoInstrumentation.Native/otel_profiler_constants.h`](../src/OpenTelemetry.AutoInstrumentation.Native/otel_profiler_constants.h)
- [`src/OpenTelemetry.AutoInstrumentation.Native/version.h`](../src/OpenTelemetry.AutoInstrumentation.Native/version.h)
- [`src/OpenTelemetry.AutoInstrumentation/OpenTelemetry.AutoInstrumentation.csproj`](../src/OpenTelemetry.AutoInstrumentation/OpenTelemetry.AutoInstrumentation.csproj)
- ['src/OpenTelemetry.AutoInstrumentation\Constants.cs'](../src/OpenTelemetry.AutoInstrumentation\Constants.cs)
(Version tag)
1. Update the documentation link on the [README.md](./README.md) file.

View File

@ -21,7 +21,7 @@ internal static class Constants
public static class Tracer
{
public const string Language = "dotnet";
public const string Version = "0.2.0";
public const string Version = "0.3.0";
}
public static class ConfigurationValues

View File

@ -0,0 +1,29 @@
// <copyright file="ConstantsTests.cs" company="OpenTelemetry Authors">
// Copyright The OpenTelemetry Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using FluentAssertions;
using Xunit;
namespace OpenTelemetry.AutoInstrumentation.Tests;
public class ConstantsTests
{
[Fact]
public void VersionTag()
{
Constants.Tracer.Version.Should().Be(typeof(Constants).Assembly.GetName().Version?.ToString(fieldCount: 3));
}
}