Skip to content

Commit 753ed70

Browse files
authored
improve documented scope return values (#1025)
TC review suggests that DETACHED and INACTIVE responses need clarification
1 parent bfb5feb commit 753ed70

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Context.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public static function storage(): ContextStorageInterface
5353
/**
5454
* @param ContextInterface|false|null $context
5555
*
56-
* @internal
56+
* @internal OpenTelemetry
5757
*/
5858
public static function resolve($context, ?ContextStorageInterface $contextStorage = null): ContextInterface
5959
{

ScopeInterface.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88

99
interface ScopeInterface
1010
{
11-
/** Already detached. */
11+
/** The associated context was already detached. */
1212
public const DETACHED = 1 << (PHP_INT_SIZE << 3) - 1;
13-
/** Execution context inactive. */
13+
/** The associated context is not in the active execution context. */
1414
public const INACTIVE = 1 << (PHP_INT_SIZE << 3) - 2;
15-
/** Not current context. */
15+
/** The associated context is not the active context. */
1616
public const MISMATCH = 1 << (PHP_INT_SIZE << 3) - 3;
1717

1818
/**

0 commit comments

Comments
 (0)