Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
a874d1c
- handle serialization failures
mgravell Oct 22, 2024
3951c72
- add "callback" to .dic
mgravell Oct 2, 2024
aac82e8
support and tests for stability despite unreliable L2
mgravell Oct 3, 2024
6fd3047
nit
mgravell Oct 3, 2024
8a7b59b
Compile for NS2.0
joperezr Oct 3, 2024
5605ce5
include enabled check in our log output
mgravell Oct 4, 2024
d562906
add event-source tracing and counters
mgravell Oct 22, 2024
6a78eb2
explicitly specify event-source guid
mgravell Oct 22, 2024
3c9c88d
satisfy the stylebot overloads
mgravell Oct 22, 2024
cbe7eb7
nix SDT
mgravell Oct 22, 2024
ab98bab
fix failing CI test
mgravell Oct 24, 2024
607d395
limit to net462
mgravell Oct 24, 2024
8b59367
PR feedback (all except event tests)
mgravell Oct 28, 2024
43e0406
naming
mgravell Oct 28, 2024
cb370ee
add event source tests
mgravell Oct 29, 2024
028d813
fix redundant comment
mgravell Oct 29, 2024
91fca21
add clarification
mgravell Oct 29, 2024
1a4520b
more clarifications
mgravell Oct 29, 2024
6b7bb54
dance for our robot overlords
mgravell Oct 29, 2024
faba196
drop Microsoft.Extensions.Telemetry.Abstractions package-ref
mgravell Oct 29, 2024
8d757c7
fix glitchy L2 test
mgravell Oct 29, 2024
923ad11
Merge branch 'main' into marc/max_size
mgravell Oct 29, 2024
6301b08
better tracking for invalid event-source state
mgravell Oct 29, 2024
e98d8d7
reserve non-printable characters from keys, to prevent L2 abuse
mgravell Oct 30, 2024
d1a90fa
improve test output for ETW
mgravell Oct 31, 2024
8989fd9
tyop
mgravell Oct 31, 2024
03001c2
ETW tests: allow longer if needed
mgravell Nov 1, 2024
031d9eb
whitespace
mgravell Nov 1, 2024
3488a87
more ETW fixins
mgravell Nov 4, 2024
5a4d146
Merge branch 'main' into marc/max_size
mgravell Nov 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Compile for NS2.0
  • Loading branch information
joperezr authored and mgravell committed Oct 22, 2024
commit 8a7b59b57438a0694bee69a32e31152f72611d95
Original file line number Diff line number Diff line change
Expand Up @@ -42,70 +42,3 @@ internal static partial class Log
[LoggerMessage(LogLevel.Error, "Cache backend write failure", EventId = IdCacheBackendWriteFailure)]
internal static partial void CacheBackendWriteFailure(this ILogger logger, Exception ex);
}

internal static partial class Log
{
// placeholder because I'm struggling to get the code-generator for [LoggerMessage] working, unknown for now
internal static partial void MaximumPayloadBytesExceeded(this ILogger logger, Exception e, int bytes)
{
if (logger is not null && logger.IsEnabled(LogLevel.Error))
{
logger.Log(LogLevel.Error, IdMaximumPayloadBytesExceeded, bytes,
e, static (state, e) => $"Cache MaximumPayloadBytes ({state}) exceeded");
}
}

internal static partial void SerializationFailure(this ILogger logger, Exception e)
{
if (logger is not null && logger.IsEnabled(LogLevel.Error))
{
logger.Log(LogLevel.Error, IdSerializationFailure, 0,
e, static (state, e) => $"Cache serialization failure");
}
}

internal static partial void DeserializationFailure(this ILogger logger, Exception e)
{
if (logger is not null && logger.IsEnabled(LogLevel.Error))
{
logger.Log(LogLevel.Error, IdDeserializationFailure, 0,
e, static (state, e) => $"Cache deserialization failure");
}
}

internal static partial void KeyEmptyOrWhitespace(this ILogger logger)
{
if (logger is not null && logger.IsEnabled(LogLevel.Error))
{
logger.Log(LogLevel.Error, IdKeyEmptyOrWhitespace, 0,
null, static (state, e) => $"Cache key empty or whitespace");
}
}

internal static partial void MaximumKeyLengthExceeded(this ILogger logger, int maxLength, int keyLength)
{
if (logger is not null && logger.IsEnabled(LogLevel.Error))
{
logger.Log(LogLevel.Error, IdMaximumKeyLengthExceeded, (maxLength, keyLength),
null, static (state, e) => $"Cache key maximum length exceeded (maximum: {state.maxLength}, actual: {state.keyLength})");
}
}

internal static partial void CacheBackendReadFailure(this ILogger logger, Exception e)
{
if (logger is not null && logger.IsEnabled(LogLevel.Error))
{
logger.Log(LogLevel.Error, IdCacheBackendReadFailure, 0,
e, static (state, e) => $"Cache backend read failure");
}
}

internal static partial void CacheBackendWriteFailure(this ILogger logger, Exception e)
{
if (logger is not null && logger.IsEnabled(LogLevel.Error))
{
logger.Log(LogLevel.Error, IdCacheBackendWriteFailure, 0,
e, static (state, e) => $"Cache backend write failure");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
<PackageReference Include="Microsoft.Extensions.Caching.Abstractions" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" />
<PackageReference Include="Microsoft.Extensions.Options" />
<ProjectReference Include="..\Microsoft.Extensions.Telemetry.Abstractions\Microsoft.Extensions.Telemetry.Abstractions.csproj" PrivateAssets="All" />

<!-- this provides the default L1 implementation; L2 is optional -->
<PackageReference Include="Microsoft.Extensions.Caching.Memory" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<RootNamespace>Microsoft.Extensions.Compliance</RootNamespace>
<TargetFrameworks>$(NetCoreTargetFrameworks);netstandard2.0;</TargetFrameworks>
<Description>Abstractions to help ensure compliant data management.</Description>
<Workstream>Fundamentals</Workstream>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<RootNamespace>Microsoft.Extensions.Telemetry</RootNamespace>
<TargetFrameworks>$(NetCoreTargetFrameworks);netstandard2.0;</TargetFrameworks>
<Description>Common abstractions for high-level telemetry primitives.</Description>
<Workstream>Telemetry</Workstream>
</PropertyGroup>
Expand Down