-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e3e127a
commit fde9922
Showing
28 changed files
with
278 additions
and
223 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 33 additions & 33 deletions
66
src/Contracts/Masa.Tsc.Contracts.Admin/Infrastructure/Const/StorageConst.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,50 @@ | ||
// Copyright (c) MASA Stack All rights reserved. | ||
// Licensed under the MIT License. See LICENSE.txt in the project root for license information. | ||
//// Copyright (c) MASA Stack All rights reserved. | ||
//// Licensed under the MIT License. See LICENSE.txt in the project root for license information. | ||
|
||
namespace Masa.Tsc.Contracts.Admin.Infrastructure.Const; | ||
//namespace Masa.Tsc.Contracts.Admin.Infrastructure.Const; | ||
|
||
public sealed class StorageConst | ||
{ | ||
private StorageConst() { } | ||
//public sealed class StorageConst | ||
//{ | ||
// private StorageConst() { } | ||
|
||
public static string Timestimap(bool isElasticsearch = false, bool isClickhouse = false) | ||
{ | ||
if (isElasticsearch) | ||
{ | ||
return "@timestamp"; | ||
} | ||
else if (isClickhouse) | ||
{ | ||
return "Timestamp"; | ||
} | ||
return default!; | ||
} | ||
// public static string Timestimap(bool isElasticsearch = false, bool isClickhouse = false) | ||
// { | ||
// if (isElasticsearch) | ||
// { | ||
// return "@timestamp"; | ||
// } | ||
// else if (isClickhouse) | ||
// { | ||
// return "Timestamp"; | ||
// } | ||
// return default!; | ||
// } | ||
|
||
public const string LogLevelText = "SeverityText"; | ||
// public const string LogLevelText = "SeverityText"; | ||
|
||
public const string LogErrorText = "Error"; | ||
// public const string LogErrorText = "Error"; | ||
|
||
public const string LogWarningText = "Warning"; | ||
// public const string LogWarningText = "Warning"; | ||
|
||
public const string ServiceName = "Resource.service.name"; | ||
// public const string ServiceName = "Resource.service.name"; | ||
|
||
public const string ServiceInstance = "Resource.service.instance.id"; | ||
// public const string ServiceInstance = "Resource.service.instance.id"; | ||
|
||
public const string URL = "Attributes.http.target"; | ||
// public const string URL = "Attributes.http.target"; | ||
|
||
public const string HttpPort = "Attributes.http.status_code"; | ||
// public const string HttpPort = "Attributes.http.status_code"; | ||
|
||
public static string TraceId { get; private set; } = "TraceId"; | ||
// public static string TraceId { get; private set; } = "TraceId"; | ||
|
||
public static string SpanId { get; private set; } = "SpanId"; | ||
// public static string SpanId { get; private set; } = "SpanId"; | ||
|
||
public const string Environment = "Resource.service.namespace"; | ||
// public const string Environment = "Resource.service.namespace"; | ||
|
||
public const string ExceptionMessage = "Attributes.exception.message"; | ||
// public const string ExceptionMessage = "Attributes.exception.message"; | ||
|
||
public const string ExceptionType = "Attributes.exception.type"; | ||
// public const string ExceptionType = "Attributes.exception.type"; | ||
|
||
public const string TaskId = "Attributes.TaskId"; | ||
// public const string TaskId = "Attributes.TaskId"; | ||
|
||
public const string UserId = "Attributes.enduser.id"; | ||
} | ||
// public const string UserId = "Attributes.enduser.id"; | ||
//} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.