Skip to content

Commit a52ac9b

Browse files
authored
Merge pull request #96 from serilog/dev
1.0.1 Release
2 parents d687d7e + 794cde5 commit a52ac9b

File tree

3 files changed

+14
-32
lines changed

3 files changed

+14
-32
lines changed

Build.ps1

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,20 @@ if(Test-Path .\artifacts) {
1212
$branch = @{ $true = $env:APPVEYOR_REPO_BRANCH; $false = $(git symbolic-ref --short -q HEAD) }[$NULL -ne $env:APPVEYOR_REPO_BRANCH];
1313
$revision = @{ $true = "{0:00000}" -f [convert]::ToInt32("0" + $env:APPVEYOR_BUILD_NUMBER, 10); $false = "local" }[$NULL -ne $env:APPVEYOR_BUILD_NUMBER];
1414
$suffix = @{ $true = ""; $false = "$($branch.Substring(0, [math]::Min(10,$branch.Length)))-$revision"}[$branch -eq "main" -and $revision -ne "local"]
15-
$commitHash = $(git rev-parse --short HEAD)
16-
$buildSuffix = @{ $true = "$($suffix)-$($commitHash)"; $false = "$($branch)-$($commitHash)" }[$suffix -ne ""]
1715

1816
Write-Output "build: Package version suffix is $suffix"
19-
Write-Output "build: Build version suffix is $buildSuffix"
2017

2118
foreach ($src in Get-ChildItem src/*) {
2219
Push-Location $src
2320

2421
Write-Output "build: Packaging project in $src"
2522

26-
& dotnet build -c Release --version-suffix=$buildSuffix
27-
if($LASTEXITCODE -ne 0) { throw "Failed" }
28-
29-
if($suffix) {
30-
& dotnet pack -c Release --include-source --no-build -o ../../artifacts --version-suffix=$suffix
23+
if ($suffix) {
24+
& dotnet pack -c Release --include-source -o ../../artifacts --version-suffix=$suffix
3125
} else {
32-
& dotnet pack -c Release --include-source --no-build -o ../../artifacts
26+
& dotnet pack -c Release --include-source -o ../../artifacts
3327
}
34-
if($LASTEXITCODE -ne 0) { throw "Failed" }
28+
if($LASTEXITCODE -ne 0) { throw "Packaging failed" }
3529

3630
Pop-Location
3731
}
@@ -42,18 +36,7 @@ foreach ($test in Get-ChildItem test/*.Tests) {
4236
Write-Output "build: Testing project in $test"
4337

4438
& dotnet test -c Release
45-
if($LASTEXITCODE -ne 0) { throw "Failed" }
46-
47-
Pop-Location
48-
}
49-
50-
foreach ($test in ls test/*.PerformanceTests) {
51-
Push-Location $test
52-
53-
Write-Output "build: Building performance test project in $test"
54-
55-
& dotnet build -c Release
56-
if($LASTEXITCODE -ne 0) { throw "Failed" }
39+
if($LASTEXITCODE -ne 0) { throw "Testing failed" }
5740

5841
Pop-Location
5942
}

README.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
# Serilog.Sinks.OpenTelemetry [![Build status](https://ci.appveyor.com/api/projects/status/sqmrvw34pcuatwl5/branch/dev?svg=true)](https://ci.appveyor.com/project/serilog/serilog-sinks-opentelemetry/branch/dev) [![NuGet Version](http://img.shields.io/nuget/vpre/Serilog.Sinks.OpenTelemetry.svg?style=flat)](https://www.nuget.org/packages/Serilog.Sinks.OpenTelemetry/)
22

3-
This Serilog sink will transform Serilog events into OpenTelemetry
4-
`LogRecord`s and send them as a protobuf payload to an OpenTelemetry
5-
OTLP (gRPC or HTTP) endpoint.
3+
This Serilog sink transforms Serilog events into OpenTelemetry
4+
`LogRecord`s and sends them to an OTLP (gRPC or HTTP) endpoint.
65

76
The sink aims for full compliance with the OpenTelemetry Logs protocol. It
87
does not depend on the OpenTelemetry SDK or .NET API.
@@ -11,10 +10,7 @@ OpenTelemetry supports attributes with scalar values, arrays, and maps.
1110
Serilog does as well. Consequently, the sink does a one-to-one
1211
mapping between Serilog properties and OpenTelemetry attributes.
1312
There is no flattening, renaming, or other modifications done to the
14-
properies by default.
15-
16-
The formatter renders the log message, which is then stored as the
17-
body of the OpenTelemetry `LogRecord`.
13+
properties by default.
1814

1915
## Getting started
2016

src/Serilog.Sinks.OpenTelemetry/Serilog.Sinks.OpenTelemetry.csproj

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<Description>A Serilog sink that writes log events to an OpenTelemetry collector.</Description>
4-
<VersionPrefix>1.0.0</VersionPrefix>
3+
<Description>This Serilog sink transforms Serilog events into OpenTelemetry
4+
logs and sends them to an OTLP (gRPC or HTTP) endpoint.</Description>
5+
<VersionPrefix>1.0.1</VersionPrefix>
56
<Authors>Serilog Contributors</Authors>
67
<TargetFrameworks>net6.0;netstandard2.1;netstandard2.0;net462</TargetFrameworks>
78
<PackageTags>serilog;sink;opentelemetry</PackageTags>
@@ -12,6 +13,7 @@
1213
<RepositoryType>git</RepositoryType>
1314
<GenerateDocumentationFile>true</GenerateDocumentationFile>
1415
<RootNamespace>Serilog</RootNamespace>
16+
<PackageReadmeFile>README.md</PackageReadmeFile>
1517
</PropertyGroup>
1618

1719
<PropertyGroup Condition=" '$(TargetFramework)' == 'net6.0' ">
@@ -23,7 +25,8 @@
2325
</PropertyGroup>
2426

2527
<ItemGroup>
26-
<None Include="..\..\assets\serilog-sink-nuget.png" Pack="true" Visible="false" PackagePath="" />
28+
<None Include="../../assets/serilog-sink-nuget.png" Pack="true" Visible="false" PackagePath="/" />
29+
<None Include="../../README.md" Pack="true" Visible="false" PackagePath="/" />
2730
<PackageReference Include="Google.Protobuf" Version="3.21.11" />
2831
<PackageReference Include="Grpc.Net.Client" Version="2.50.0" />
2932
<PackageReference Include="Serilog" Version="2.12.0" />

0 commit comments

Comments
 (0)