Skip to content

Commit 5a49ee0

Browse files
authored
Merge pull request #7 from andrew-demb/patch-1
Fix exception for unknown sampler type
2 parents 054b0b0 + 8377e0d commit 5a49ee0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Bridge/JaegerSamplerFactory.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ public function sampler(string $type, $param): SamplerInterface
4949
new ProbabilisticSampler((float)$param)
5050
);
5151
default:
52-
throw new \RuntimeException('Unknown sampler type %s');
52+
throw new \RuntimeException(
53+
\sprintf('Unknown sampler type "%s"', $type)
54+
);
5355
}
5456
}
5557
}

0 commit comments

Comments
 (0)