Skip to content

Commit

Permalink
remove deprecated code and BC hacks (open-telemetry#1099)
Browse files Browse the repository at this point in the history
in preparation for RC, removing deprecations and BC hacks so that we have a clean slate for 1.0.0
  • Loading branch information
brettmc authored Aug 16, 2023
1 parent 82f0c44 commit 62a14d1
Show file tree
Hide file tree
Showing 19 changed files with 4 additions and 1,205 deletions.
16 changes: 0 additions & 16 deletions src/API/Trace/AbstractSpan.php

This file was deleted.

5 changes: 0 additions & 5 deletions src/API/Trace/SpanContextInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@
*/
interface SpanContextInterface
{
/** @deprecated */
public const TRACE_FLAG_SAMPLED = 0x01;
/** @deprecated */
public const TRACE_FLAG_DEFAULT = 0x00;

public static function createFromRemoteParent(string $traceId, string $spanId, int $traceFlags = TraceFlags::DEFAULT, ?TraceStateInterface $traceState = null): SpanContextInterface;
public static function getInvalid(): SpanContextInterface;
public static function create(string $traceId, string $spanId, int $traceFlags = TraceFlags::DEFAULT, ?TraceStateInterface $traceState = null): SpanContextInterface;
Expand Down
46 changes: 0 additions & 46 deletions src/SDK/Common/Dev/Compatibility/BC/ApiCommon.php

This file was deleted.

22 changes: 0 additions & 22 deletions src/SDK/Common/Dev/Compatibility/BC/LogRecordProcessors.php

This file was deleted.

53 changes: 0 additions & 53 deletions src/SDK/Common/Dev/Compatibility/BC/OtlpExporter.php

This file was deleted.

8 changes: 4 additions & 4 deletions src/SDK/Common/Dev/Compatibility/_load.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

declare(strict_types=1);

require_once __DIR__ . '/BC/OtlpExporter.php';
require_once __DIR__ . '/BC/ApiCommon.php';
require_once __DIR__ . '/BC/LogRecordProcessors.php';
/**
* To add a BC compatibility:
* require_once __DIR__ . '/BC/SomeFile.php';
*/
197 changes: 0 additions & 197 deletions src/SDK/Common/Dsn/Dsn.php

This file was deleted.

Loading

0 comments on commit 62a14d1

Please sign in to comment.