Skip to content

Commit 45bed16

Browse files
committed
Merge branch 'main' into migrate-docs
2 parents 7535964 + 0605582 commit 45bed16

File tree

5 files changed

+36
-24
lines changed

5 files changed

+36
-24
lines changed

.github/workflows/comment-on-asciidoc-changes.yml

-21
This file was deleted.

.github/workflows/docs-build.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: docs-build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request_target: ~
8+
merge_group: ~
9+
10+
jobs:
11+
docs-preview:
12+
uses: elastic/docs-builder/.github/workflows/preview-build.yml@main
13+
with:
14+
path-pattern: docs/**
15+
permissions:
16+
deployments: write
17+
id-token: write
18+
contents: read
19+
pull-requests: read

.github/workflows/docs-cleanup.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: docs-cleanup
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- closed
7+
8+
jobs:
9+
docs-preview:
10+
uses: elastic/docs-builder/.github/workflows/preview-cleanup.yml@main
11+
permissions:
12+
contents: none
13+
id-token: write
14+
deployments: write

build/scripts/scripts.fsproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<IsPackable>false</IsPackable>
77
</PropertyGroup>
88
<ItemGroup>
9-
<PackageReference Include="Argu" Version="6.0.0" />
9+
<PackageReference Include="Argu" Version="6.2.5" />
1010
<PackageReference Include="Bullseye" Version="3.3.0" />
1111
<PackageReference Include="Proc" Version="0.6.2" />
1212
<PackageReference Include="Fake.Tools.Git" Version="5.15.0" />

src/Elastic.CommonSchema.Serilog/LogEventConverter.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ public static class LogEventConverter
2121
/// <summary>
2222
/// Converts a <see cref="LogEvent"/> to an <typeparamref name="TEcsDocument"/>
2323
/// </summary>
24-
public static TEcsDocument ConvertToEcs<TEcsDocument>(LogEvent logEvent, IEcsTextFormatterConfiguration<TEcsDocument> configuration)
24+
public static TEcsDocument ConvertToEcs<TEcsDocument>(LogEvent logEvent, IEcsTextFormatterConfiguration<TEcsDocument> configuration, EcsDocumentCreationCache? initialCache = null)
2525
where TEcsDocument : EcsDocument, new()
2626
{
27-
var ecsEvent = EcsDocument.CreateNewWithDefaults<TEcsDocument>(logEvent.Timestamp, logEvent.Exception, configuration);
27+
var ecsEvent = EcsDocument.CreateNewWithDefaults<TEcsDocument>(logEvent.Timestamp, logEvent.Exception, configuration, initialCache);
2828

2929
if (logEvent.TryGetScalarString(SpecialKeys.MachineName, out var machineName))
3030
{

0 commit comments

Comments
 (0)