Skip to content

Commit

Permalink
scope down
Browse files Browse the repository at this point in the history
  • Loading branch information
reyang committed May 22, 2024
1 parent 226c19e commit 458faaf
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
1 change: 0 additions & 1 deletion docs/logs/extending-the-sdk/MyExporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
using OpenTelemetry;
using OpenTelemetry.Logs;

[ConcurrencyModes(ConcurrencyModes.Multithreaded | ConcurrencyModes.Reentrant)]
internal class MyExporter : BaseExporter<LogRecord>
{
private readonly string name;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
OpenTelemetry.ConcurrencyModes
OpenTelemetry.ConcurrencyModes.Global = 128 -> OpenTelemetry.ConcurrencyModes
OpenTelemetry.ConcurrencyModes.Multithreaded = 2 -> OpenTelemetry.ConcurrencyModes
OpenTelemetry.ConcurrencyModes.Reentrant = 1 -> OpenTelemetry.ConcurrencyModes
OpenTelemetry.ConcurrencyModesAttribute
Expand Down
9 changes: 1 addition & 8 deletions src/OpenTelemetry/ConcurrencyModes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ 0 0 0 0 0 0 0 0
| | | +----------- (reserved)
| | +------------- (reserved)
| +--------------- (reserved)
+----------------- Global
+----------------- (reserved)
*/

/// <summary>
Expand All @@ -33,11 +33,4 @@ 0 0 0 0 0 0 0 0
/// multiple threads.
/// </summary>
Multithreaded = 0b10,

/// <summary>
/// Global, when combined with other flags, indicates that a per-instance
/// synchronization is insufficient, a global synchronization is required
/// across all instances of the component.
/// </summary>
Global = 0b10000000,
}

0 comments on commit 458faaf

Please sign in to comment.