You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: context.rb
    path of file: ./repos/dd-trace-rb/lib/datadog/opentelemetry/api
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require_relative 'trace/span'
require_relative '../../tracing/trace_operation'
require_relative '../trace'

module Datadog
  module OpenTelemetry
    module API
      # The OpenTelemetry Context contains a key-value store that can be attac
    
        def set_values(values)
          if (current_span = values[CURRENT_SPAN_KEY]) && current_span.datadog_trace
            # Because `#set_value` returns new context, we have to create
            # a new copy of the active trace to ensure there's no conflict with
            # other users of the active trace.
            # It effectively becomes an internal trace propagation.
            trace = Datadog::OpenTelemetry::Trace.start_trace_copy(
              current_span.datadog_trace,
              parent_span: current_span.datadog_span
            )
          end