Skip to content

Commit

Permalink
improve documented scope return values
Browse files Browse the repository at this point in the history
TC review suggests that DETACHED and INACTIVE responses need clarification
  • Loading branch information
brettmc committed Jun 6, 2023
1 parent 1b63a3b commit a5966d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Context/Context.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public static function storage(): ContextStorageInterface
/**
* @param ContextInterface|false|null $context
*
* @internal
* @internal OpenTelemetry
*/
public static function resolve($context, ?ContextStorageInterface $contextStorage = null): ContextInterface
{
Expand Down
6 changes: 3 additions & 3 deletions src/Context/ScopeInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@

interface ScopeInterface
{
/** Already detached. */
/** The associated context was already detached. */
public const DETACHED = 1 << (PHP_INT_SIZE << 3) - 1;
/** Execution context inactive. */
/** The associated context is not in the active execution context. */
public const INACTIVE = 1 << (PHP_INT_SIZE << 3) - 2;
/** Not current context. */
/** The associated context is not the active context. */
public const MISMATCH = 1 << (PHP_INT_SIZE << 3) - 3;

/**
Expand Down

0 comments on commit a5966d5

Please sign in to comment.